mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
chore: remove hardcoded nix version
This commit is contained in:
parent
864b572dbf
commit
517890762b
1 changed files with 25 additions and 26 deletions
|
@ -1,4 +1,9 @@
|
||||||
{ pkgs, config, lib, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.luj.nix;
|
cfg = config.luj.nix;
|
||||||
in
|
in
|
||||||
|
@ -8,11 +13,10 @@ with lib;
|
||||||
enable = mkEnableOption "Enable nix experimental";
|
enable = mkEnableOption "Enable nix experimental";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable
|
config = mkIf cfg.enable {
|
||||||
{
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.unstable.nix;
|
#package = pkgs.unstable.nix;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
@ -20,20 +24,15 @@ with lib;
|
||||||
"nixpkgs=${inputs.nixpkgs}"
|
"nixpkgs=${inputs.nixpkgs}"
|
||||||
"nixos=${inputs.nixpkgs}"
|
"nixos=${inputs.nixpkgs}"
|
||||||
];
|
];
|
||||||
settings =
|
settings = {
|
||||||
{
|
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://cache.saumon.network/attic-exec?priority=100"
|
"https://cache.saumon.network/attic-exec?priority=100"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [ "attic-exec:W1PQ0txRf4qpCIlNLscD/Xw1GwGoBij73JSum/I8Xt4=" ];
|
||||||
"attic-exec:W1PQ0txRf4qpCIlNLscD/Xw1GwGoBij73JSum/I8Xt4="
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue