mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01: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
|
||||
cfg = config.luj.nix;
|
||||
in
|
||||
|
@ -8,32 +13,26 @@ with lib;
|
|||
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}"
|
||||
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"
|
||||
];
|
||||
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="
|
||||
];
|
||||
};
|
||||
|
||||
trusted-public-keys = [ "attic-exec:W1PQ0txRf4qpCIlNLscD/Xw1GwGoBij73JSum/I8Xt4=" ];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue