mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 22:31:53 -05:00
Aly Raffauf
b05223bd9f
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* hosts/common: set default FLAKE * fallarbor,rustboro: use latest flake published on flakehub
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
environment.variables.FLAKE = lib.mkDefault "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
|
|
|
|
overlays = [
|
|
(final: prev: {
|
|
rofi-bluetooth =
|
|
prev.rofi-bluetooth.overrideAttrs
|
|
(old: {
|
|
version = "unstable-2024-07-25";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "alyraffauf";
|
|
repo = old.pname;
|
|
rev = "50252e4a9aebe4899a6ef2f7bc11d91b7e4aa8ae";
|
|
sha256 = "sha256-o0Sr3/888L/2KzZZP/EcXx+8ZUzdHB/I/VIeVuJvJks=";
|
|
};
|
|
});
|
|
})
|
|
];
|
|
};
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
allowReboot = true;
|
|
dates = "02:00";
|
|
flags = ["--accept-flake-config"];
|
|
flake = config.environment.variables.FLAKE;
|
|
operation = "switch";
|
|
persistent = true;
|
|
randomizedDelaySec = "30min";
|
|
|
|
rebootWindow = {
|
|
lower = "04:00";
|
|
upper = "06:00";
|
|
};
|
|
};
|
|
}
|