nixos/common/base.nix
2023-11-25 18:13:44 +03:00

45 lines
839 B
Nix

{ config, pkgs, lib, ... }:
let
my = import ../.;
secrets = my.secrets { inherit config; };
in {
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
settings = {
sandbox = true;
trusted-users = [ "root" "ivabus" ];
allowed-users = [ "root" "ivabus" ];
};
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
};
documentation = {
doc.enable = false;
info.enable = false;
man.enable = true;
nixos.enable = false;
};
environment.systemPackages = with pkgs; [
wget
curl
git
git-crypt
neovim
python3
usbutils
pciutils
coreutils
killall
];
# Inject secrets through module arguments while evaluating configs.
_module.args.secrets = secrets;
}