mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 13:49:17 -05:00
Aly Raffauf
a844e2ff68
* hosts: mv common.nix -> common/default.nix * hosts/common: move wifi settings to wifi.nix * hosts/common: add locale.nix, nix.nix, samba.nix, and secrets.nix * hosts/common: move network and wifi settings to network.nix * hosts/common: org fixes
36 lines
830 B
Nix
36 lines
830 B
Nix
{config, ...}: {
|
|
environment.variables.FLAKE = "github:alyraffauf/nixcfg";
|
|
|
|
nix.settings = {
|
|
substituters = [
|
|
"https://alyraffauf.cachix.org"
|
|
"https://cache.nixos.org/"
|
|
"https://nix-community.cachix.org"
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
"alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM="
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
|
|
trusted-users = ["aly"];
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true; # Allow unfree packages
|
|
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
allowReboot = true;
|
|
dates = "02:00";
|
|
flake = config.environment.variables.FLAKE;
|
|
operation = "switch";
|
|
persistent = true;
|
|
randomizedDelaySec = "30min";
|
|
|
|
rebootWindow = {
|
|
lower = "04:00";
|
|
upper = "06:00";
|
|
};
|
|
};
|
|
}
|