refactor: moved darwin, home-manager, and system configurations to dendrite pattern

This commit is contained in:
Leyla Becker 2026-04-07 15:58:45 -05:00
parent 0ea11e0236
commit 149f4f151f
193 changed files with 3284 additions and 3095 deletions

View file

@ -0,0 +1,10 @@
{config, ...}: let
mod = config.flake.darwinModules;
in {
flake.darwinModules.darwin-modules-all = {
imports = [
mod.darwin-system
mod.darwin-users
];
};
}

29
modules/darwin/system.nix Normal file
View file

@ -0,0 +1,29 @@
{...}: {
flake.darwinModules.darwin-system = {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;
}
];
};
};
};
}

18
modules/darwin/users.nix Normal file
View file

@ -0,0 +1,18 @@
{...}: {
flake.darwinModules.darwin-users = {
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}";
};
};
};
};
}