mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-07 21:13:55 +00:00
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ pkgs, lib, config, userName, False, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.module.misc.nix;
|
|
in {
|
|
options = { module.misc.nix = { enable = mkEnableOption ""; }; };
|
|
|
|
config = mkIf cfg.enable {
|
|
nix = {
|
|
package = pkgs.nix;
|
|
settings = {
|
|
warn-dirty = false;
|
|
extra-experimental-features = [ "nix-command" "flakes" ];
|
|
builders-use-substitutes = true;
|
|
auto-optimise-store = true;
|
|
extra-substituters = [
|
|
"https://nix-gaming.cachix.org" # NIX GAMING
|
|
"https://hyprland.cachix.org" # HYPRLAND
|
|
];
|
|
extra-trusted-public-keys = [
|
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" # NIX GAMING
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" # HYPRLAND
|
|
];
|
|
trusted-users = [ "${userName}" "@wheel" ];
|
|
};
|
|
};
|
|
nixpkgs.config.allowUnfree = true;
|
|
news.display = "silent";
|
|
manual = {
|
|
manpages = False;
|
|
json = False;
|
|
html = False;
|
|
};
|
|
};
|
|
}
|
|
|