2024-07-26 00:21:42 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-07-30 20:02:24 -04:00
|
|
|
lib,
|
2024-07-26 00:21:42 -04:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-07-30 20:02:24 -04:00
|
|
|
environment.variables.FLAKE = lib.mkDefault "github:alyraffauf/nixcfg";
|
2024-07-16 16:53:28 -04:00
|
|
|
|
|
|
|
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"];
|
|
|
|
};
|
|
|
|
|
2024-07-26 00:21:42 -04:00
|
|
|
nixpkgs = {
|
|
|
|
config.allowUnfree = true; # Allow unfree packages
|
2024-07-16 16:53:28 -04:00
|
|
|
|
2024-07-26 00:21:42 -04:00
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
2024-08-04 00:03:18 -04:00
|
|
|
rbw = prev.rbw.override (super: {
|
|
|
|
rustPlatform =
|
|
|
|
super.rustPlatform
|
|
|
|
// {
|
|
|
|
buildRustPackage = args:
|
|
|
|
super.rustPlatform.buildRustPackage (args
|
|
|
|
// {
|
|
|
|
version = "1.12.1";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "doy";
|
|
|
|
repo = "rbw";
|
|
|
|
rev = "1.12.1";
|
|
|
|
hash = "sha256-+1kalFyhk2UL+iVzuFLDsSSTudrd4QpXw+3O4J+KsLc=";
|
|
|
|
};
|
|
|
|
cargoHash = "sha256-cKbbsDb449WANGT+x8APhzs+hf5SR3RBsCBWDNceRMA=";
|
|
|
|
});
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2024-07-26 00:21:42 -04:00
|
|
|
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=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2024-07-16 16:53:28 -04:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
allowReboot = true;
|
|
|
|
dates = "02:00";
|
2024-07-22 14:00:32 -04:00
|
|
|
flags = ["--accept-flake-config"];
|
2024-07-16 16:53:28 -04:00
|
|
|
flake = config.environment.variables.FLAKE;
|
|
|
|
operation = "switch";
|
|
|
|
persistent = true;
|
|
|
|
randomizedDelaySec = "30min";
|
|
|
|
|
|
|
|
rebootWindow = {
|
|
|
|
lower = "04:00";
|
|
|
|
upper = "06:00";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|