mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
28 lines
508 B
Nix
28 lines
508 B
Nix
{ pkgs, config, lib, ... }:
|
|
let
|
|
cfg = config.luj.nix;
|
|
in
|
|
with lib;
|
|
{
|
|
options.luj.nix = {
|
|
enable = mkEnableOption "Enable nix experimental";
|
|
};
|
|
|
|
config = mkIf cfg.enable
|
|
{
|
|
nix = {
|
|
autoOptimiseStore = true;
|
|
allowedUsers = [ "julien" "hydra" ];
|
|
gc = {
|
|
automatic = true;
|
|
dates = "daily";
|
|
};
|
|
package = pkgs.nixUnstable;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
};
|
|
|
|
|
|
};
|
|
}
|