Separate system from home-manager again

This commit is contained in:
Greg Hellings
2025-06-10 14:28:46 -05:00
parent 389a55d8bc
commit eecd6e6d5d
37 changed files with 277 additions and 284 deletions
+64
View File
@@ -0,0 +1,64 @@
{
config,
pkgs,
...
}:
{
fonts.packages = with pkgs; [
dejavu_fonts
nerd-fonts.hack
];
nix = {
enable = true;
gc.interval.Hour = 3;
settings.auto-optimise-store = false; # Darwin bugs?
};
power.sleep = {
allowSleepByPowerButton = true;
computer = "never";
display = 30;
};
programs = {
zsh.enable = true;
bash.enable = true;
};
system = {
defaults = {
CustomSystemPreferences = {
".GlobalPreferences" = {
"com.apple.swipescrolldirection" = 0;
};
};
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
ShowExternalHardDrivesOnDesktop = true;
ShowMountedServersOnDesktop = true;
ShowPathbar = true;
ShowRemovableMediaOnDesktop = true;
ShowStatusBar = true;
};
LaunchServices.LSQuarantine = false;
menuExtraClock = {
Show24Hour = true;
ShowDate = 2;
};
screencapture = {
include-date = true;
location = "~/Photos/Screeneries";
};
trackpad = {
Dragging = false;
TrackpadRightClick = true;
};
};
startup.chime = false;
stateVersion = 6;
};
time.timeZone = "America/Chicago";
}
+4 -2
View File
@@ -14,8 +14,8 @@ let
top.darwin.lib.darwinSystem {
inherit system;
specialArgs = {
inherit nixpkgs overlays top;
inherit (top) self;
inherit nixpkgs;
};
modules = [
{
@@ -28,7 +28,9 @@ let
};
}
hm.darwinModules.home-manager
top.self.modules.darwinModule
# Local changes
../modules/nix-conf.nix
./baseline.nix
] ++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
};
in