dotfiles/modules/minimal.sys.nix

31 lines
813 B
Nix
Raw Normal View History

{pkgs
,lib
,proj_root
2022-12-27 10:47:58 +00:00
,modulesPath
2023-01-12 17:50:46 +00:00
,...
}:{
2022-12-27 10:47:58 +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;
nix.package = pkgs.nixFlakes; # nix flakes
nix.extraOptions = ''
2022-12-27 10:47:58 +00:00
experimental-features = nix-command flakes
'';
programs.neovim = {
enable = true;
defaultEditor = true;
};
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");
};
}