mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-01 18:43:52 +00:00
36 lines
801 B
Nix
36 lines
801 B
Nix
{ pkgs, lib, config, userName, ... }:
|
|
|
|
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;
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
substituters = [
|
|
"https://hyprland.cachix.org" # HYPRLAND
|
|
];
|
|
trusted-public-keys = [
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" # HYPRLAND
|
|
];
|
|
trusted-users = [ "${userName}" "@wheel" ];
|
|
};
|
|
};
|
|
|
|
nixpkgs = {
|
|
hostPlatform = lib.mkDefault "x86_64-linux";
|
|
config = { # NIXPKGS SETS
|
|
allowBroken = true;
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|