Prepare for new IVR Mac machine

Getting code prepared for arrival of the new Mac system
Adding the basic casks that I need
This commit is contained in:
Greg Hellings
2025-05-09 11:18:52 -05:00
parent 293bb518d6
commit 96955700d4
3 changed files with 26 additions and 10 deletions
+2 -3
View File
@@ -1,12 +1,12 @@
{ top, overlays, ... }: { top, overlays, ... }:
let let
inherit (top.nixunstable) lib;
mac = mac =
{ {
system ? "aarch64-darwin", system ? "aarch64-darwin",
name, name,
channel ? top.nixunstable, channel ? top.nixunstable,
hm ? top.hmunstable, hm ? top.hmunstable,
extraMods ? [ ],
}: }:
let let
nixpkgs = import channel { inherit system overlays; }; nixpkgs = import channel { inherit system overlays; };
@@ -26,8 +26,7 @@ let
} }
hm.darwinModules.home-manager hm.darwinModules.home-manager
top.self.modules.darwinModule top.self.modules.darwinModule
./${name} ] ++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
] ++ extraMods;
}; };
in in
rec { rec {
+11
View File
@@ -0,0 +1,11 @@
{ ... }:
{
homebrews = {
enable = true;
casks = [
"firefox"
"onlyoffice"
"zed"
];
};
}
+13 -7
View File
@@ -1,7 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ../baseline.nix ]; imports = [ ../baseline.nix ];
system.stateVersion = 4;
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
users."gregory.hellings" = import ../../home/home.nix; users."gregory.hellings" = import ../../home/home.nix;
@@ -11,14 +11,20 @@
home = "/Users/gregory.hellings"; home = "/Users/gregory.hellings";
}; };
}; };
users.users."gregory.hellings".home = "/Users/gregory.hellings";
programs = {
zsh.enable = true;
bash.enable = true;
};
services.nix-daemon.enable = true;
nix = { nix = {
gc.interval.Hour = 24; gc.interval.Hour = 24;
settings.auto-optimise-store = false; # Darwin bugs? settings.auto-optimise-store = false; # Darwin bugs?
}; };
programs = {
zsh.enable = true;
bash.enable = true;
};
services.nix-daemon.enable = true;
system.stateVersion = 4;
users.users."gregory.hellings".home = "/Users/gregory.hellings";
} }