base: move some shared configuration to shared
This commit is contained in:
parent
6fe9af56e7
commit
fe306085f4
11 changed files with 273 additions and 227 deletions
12
modules/darwin/base/default.nix
Normal file
12
modules/darwin/base/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, ... }:
|
||||
|
||||
let
|
||||
username = config.chvp.username;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./nix
|
||||
];
|
||||
|
||||
users.users.${username}.home = "/Users/${username}";
|
||||
}
|
9
modules/darwin/base/nix/default.nix
Normal file
9
modules/darwin/base/nix/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
nix = {
|
||||
configureBuildUsers = true;
|
||||
gc.interval = if config.chvp.base.nix.slowGc then { Hour = 0; Minute = 0; } else { Minute = 0; };
|
||||
};
|
||||
services.nix-daemon.enable = true;
|
||||
}
|
|
@ -1 +1,7 @@
|
|||
{ ... }: { }
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./base
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue