mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 09:40:55 +02:00
38 lines
811 B
Nix
38 lines
811 B
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.luj.nix;
|
|
in
|
|
with lib;
|
|
{
|
|
options.luj.nix = {
|
|
enable = mkEnableOption "Enable nix experimental";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
nixpkgs.config.allowUnfree = true;
|
|
nix = {
|
|
#package = pkgs.unstable.nix;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
"nixos=${inputs.nixpkgs}"
|
|
];
|
|
settings = {
|
|
builders-use-substitutes = true;
|
|
auto-optimise-store = true;
|
|
substituters = [
|
|
"https://cache.nixos.org"
|
|
"https://cache.saumon.network/attic-exec?priority=100"
|
|
];
|
|
trusted-public-keys = [ "attic-exec:W1PQ0txRf4qpCIlNLscD/Xw1GwGoBij73JSum/I8Xt4=" ];
|
|
};
|
|
};
|
|
};
|
|
}
|