mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Added user setup
This commit is contained in:
parent
42cd7bb365
commit
91361e1910
6 changed files with 64 additions and 51 deletions
28
modules/nix/default.nix
Normal file
28
modules/nix/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ 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" ];
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
};
|
||||
package = pkgs.nixUnstable;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue