mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move openssh to baseline
This commit is contained in:
parent
8bee7a3992
commit
889c9db162
6 changed files with 10 additions and 21 deletions
|
@ -9,12 +9,9 @@
|
|||
|
||||
environment.etc.machine-id.source = "/var/lib/nixos/machine-id";
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
};
|
||||
services.openssh.hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.sean.passwordFile = "/var/lib/nixos/shadow_sean";
|
||||
|
|
|
@ -12,12 +12,9 @@
|
|||
environment.etc."NetworkManager/system-connections".source =
|
||||
"/var/lib/nixos/nm-connections";
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
};
|
||||
services.openssh.hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.sean.passwordFile = "/var/lib/nixos/shadow_sean";
|
||||
|
|
|
@ -10,12 +10,9 @@
|
|||
|
||||
systemd.tmpfiles.rules = [ "d /var/lib/nixos/network-connections 0700" ];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
};
|
||||
services.openssh.hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
||||
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
openssh.startWhenNeeded = true;
|
||||
earlyoom.enable = true;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ with lib;
|
|||
{
|
||||
config = mkIf (config.sconfig.profile == "server") {
|
||||
services.logind.lidSwitch = "ignore";
|
||||
services.openssh.enable = true;
|
||||
documentation.nixos.enable = false;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
|
|
Loading…
Reference in a new issue