X-Git-Url: http://these/git/?a=blobdiff_plain;f=hardware%2Fshared.nix;h=96bd48f27a7d50a8907a08cf0c8c171222fe8b74;hb=HEAD;hp=ecf8de3e23dfac46d849a4442cdf2a4c5d853564;hpb=5a9db87ab30e824c0ec33efa78327ed07910361f;p=awful.systems.git diff --git a/hardware/shared.nix b/hardware/shared.nix index ecf8de3..96bd48f 100644 --- a/hardware/shared.nix +++ b/hardware/shared.nix @@ -1,20 +1,25 @@ { config, lib, pkgs, ... }: { - imports = [ - ../secrets/keys - ]; + imports = [ ../secrets/keys ./hostnames.nix ]; # Initial empty root password for easy login: users.users.root.initialHashedPassword = ""; services.openssh.settings.PermitRootLogin = "prohibit-password"; services.openssh.enable = true; + time.timeZone = "America/Los_Angeles"; + nix.gc = { automatic = true; options = "--delete-older-than 5d"; }; + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 4 * 1024; + }]; + environment.systemPackages = [ pkgs.ssh-to-age ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];