nixos/common/base.nix
Ivan Bushchik d97a20f739
global: enable NUR + common/dotfiles: rise Firefox
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2024-01-07 14:24:47 +03:00

46 lines
883 B
Nix

{ config, pkgs, lib, nur, ... }:
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";
};
};
nixpkgs.overlays = [ nur.overlay ];
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;
}