fixed nix-darwin building

This commit is contained in:
Leyla Becker 2024-11-25 18:28:55 -06:00
parent 0d0443a02a
commit 5f21fd43ff
14 changed files with 201 additions and 105 deletions

View file

@ -2,5 +2,7 @@
{...}: {
imports = [
./home-manager
./users.nix
./system.nix
];
}

View file

@ -0,0 +1,27 @@
{self, ...}: {
system.configurationRevision = self.rev or self.dirtyRev or null;
nix = {
gc = {
automatic = true;
interval = [
{
Hour = 4;
Minute = 15;
Weekday = 7;
}
];
options = "--delete-older-than 7d";
};
optimise = {
automatic = true;
interval = [
{
Hour = 4;
Minute = 15;
Weekday = 7;
}
];
};
};
}

View file

@ -0,0 +1,20 @@
{
lib,
config,
...
}: let
host = config.host;
in {
users = {
users = {
leyla = {
name = lib.mkForce host.users.leyla.name;
home = lib.mkForce "/home/${host.users.leyla.name}";
};
ester = {
name = lib.mkForce host.users.ester.name;
home = lib.mkForce "/home/${host.users.ester.name}";
};
};
};
}