2023-01-13 06:42:21 +00:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, proj_root
|
|
|
|
, modulesPath
|
|
|
|
, ...
|
|
|
|
}: {
|
|
|
|
imports = [ "${modulesPath}/profiles/minimal.nix" ];
|
2022-12-25 23:15:15 +00:00
|
|
|
# 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
|
2022-12-25 23:15:15 +00:00
|
|
|
nix.extraOptions = ''
|
2022-12-27 10:47:58 +00:00
|
|
|
experimental-features = nix-command flakes
|
2022-12-25 23:15:15 +00:00
|
|
|
'';
|
|
|
|
programs.neovim = {
|
2023-01-13 06:42:21 +00:00
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
2022-12-25 23:15:15 +00:00
|
|
|
};
|
2023-01-13 06:42:21 +00:00
|
|
|
programs.git.enable = true;
|
2022-12-25 23:15:15 +00:00
|
|
|
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");
|
2022-12-25 23:15:15 +00:00
|
|
|
};
|
|
|
|
}
|