[NixOS] Move ssh functionality into its own file
This commit is contained in:
parent
fd90a0f638
commit
d2f86e197d
@ -1,10 +1,11 @@
|
||||
{ config, pkgs, options, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nix.nix
|
||||
./users.nix
|
||||
./essential.nix
|
||||
./environment.nix
|
||||
./essential.nix
|
||||
./nix.nix
|
||||
./ssh.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
@ -46,22 +47,6 @@
|
||||
'';
|
||||
};
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
domain = true;
|
||||
workstation = true;
|
||||
userServices = true;
|
||||
addresses = true;
|
||||
hinfo = true;
|
||||
};
|
||||
extraServiceFiles = {
|
||||
ssh = "''${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||
};
|
||||
};
|
||||
|
||||
# Audio
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
@ -88,8 +73,6 @@
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
services.locate.enable = true;
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
20
nixos/ssh.nix
Normal file
20
nixos/ssh.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
domain = true;
|
||||
workstation = true;
|
||||
userServices = true;
|
||||
addresses = true;
|
||||
hinfo = true;
|
||||
};
|
||||
extraServiceFiles = {
|
||||
ssh = "''${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
{
|
||||
imports = [
|
||||
inputs.nixos-wsl.nixosModules.wsl
|
||||
./ssh.nix
|
||||
./environment.nix
|
||||
./essential.nix
|
||||
./fonts.nix
|
||||
@ -22,8 +23,7 @@
|
||||
startMenuLaunchers = true;
|
||||
nativeSystemd = true;
|
||||
|
||||
# Enable native Docker support
|
||||
# docker-native.enable = true;
|
||||
docker-native.enable = true;
|
||||
|
||||
# Enable integration with Docker Desktop (needs to be installed)
|
||||
# docker-desktop.enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user