mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
38 lines
839 B
Nix
38 lines
839 B
Nix
{ pkgs, 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 = {
|
|
autoOptimiseStore = true;
|
|
package = pkgs.unstable.nix;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
"nixos=${inputs.nixpkgs}"
|
|
];
|
|
settings =
|
|
{
|
|
substituters = [
|
|
"https://cache.nixos.org"
|
|
"https://bin.julienmalka.me"
|
|
];
|
|
trusted-public-keys = [
|
|
"bin.julienmalka.me:RfXA+kPZt3SsMHGib5fY5mxJQLijfXzPbHjHD52ijyI="
|
|
];
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
}
|