nixos/common/base.nix
Ivan Bushchik 4146f35a5b
Move python3full to base.nix to fix some things
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-11-11 10:59:07 +03:00

38 lines
766 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;
};
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
};
documentation = {
doc.enable = false;
info.enable = false;
man.enable = true;
};
environment.systemPackages = with pkgs;
[ wget curl git git-crypt neovim python3Full ]
++ lib.optionals pkgs.stdenv.isLinux [
usbutils
pciutils
coreutils
killall
];
# Inject secrets through module arguments while evaluating configs.
_module.args.secrets = secrets;
}