dotfiles/modules/minimal.sys.nix

32 lines
807 B
Nix
Raw Normal View History

2023-06-18 00:46:31 +00:00
{
pkgs,
lib,
proj_root,
modulesPath,
...
2023-01-13 06:42:21 +00:00
}: {
2023-06-18 00:46:31 +00:00
imports = ["${modulesPath}/profiles/minimal.nix"];
# prune old builds after a while
2022-12-27 10:47:58 +00:00
nix.settings.auto-optimise-store = true;
2023-01-13 06:42:21 +00:00
nix.package = pkgs.nixFlakes; # nix flakes
nix.extraOptions = ''
2022-12-27 10:47:58 +00:00
experimental-features = nix-command flakes
'';
programs.neovim = {
2023-01-13 06:42:21 +00:00
enable = true;
defaultEditor = true;
};
2023-01-13 06:42:21 +00:00
programs.git.enable = true;
environment.systemPackages = [
pkgs.gnumake
pkgs.wget
pkgs.inetutils # network diag
pkgs.mtr # network diag
pkgs.sysstat # sys diag
];
users.users.root = {
# openssh runs in root, no? This is because port < 1024 requires root.
2023-01-12 17:50:46 +00:00
openssh.authorizedKeys.keys = lib.strings.splitString "\n" (builtins.readFile "${proj_root.configs.path}/ssh/authorized_keys");
};
}