1
0
Fork 0
nixos-config/nixos/roles/standalone/default.nix
2020-07-02 21:36:42 +02:00

50 lines
1.1 KiB
Nix

{ pkgs, config, lib, ... }: {
imports = [ ./admin.nix ];
# So that boot does not fill up with old kernels
boot = {
plymouth.enable = true;
loader = {
timeout = 0;
grub = {
backgroundColor = "#000000";
configurationLimit = 5;
};
};
};
users = {
defaultUserShell = pkgs.zsh;
mutableUsers = false;
};
security.sudo.extraConfig =
"\n Defaults timestamp_type=global, timestamp_timeout=15\n ";
services = { sshd.enable = true; };
nix.nixPath = [ "nixos-config=/etc/nixos/configuration.nix" ];
environment = {
# Put these into an extra file so the essential packages can also be included on non selfadminstrated systems from home-manager
systemPackages = builtins.attrValues ({
inherit (import ../../../lib/update-system.nix {
inherit pkgs;
nixos-rebuild = config.system.build.nixos-rebuild;
})
update-system;
} // pkgs.system-pkgs);
};
programs = {
mtr.enable = true;
zsh = {
enable = true;
autosuggestions.enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
};
};
}