switch on darwin

This commit is contained in:
Noah Masur
2025-03-16 14:00:38 -04:00
parent 1833b4b46c
commit 98356634cd
9 changed files with 59 additions and 74 deletions

View File

@ -23,7 +23,7 @@ in
programs.firefox = {
enable = true;
package = if pkgs.stdenv.isDarwin then pkgs.firefox-bin else pkgs.firefox;
package = if pkgs.stdenv.isDarwin then pkgs.firefox-unwrapped else pkgs.firefox;
profiles.default = {
id = 0;
name = "default";

View File

@ -52,7 +52,7 @@ in
};
# Personal git config
xdg.configFile."git/personal".text = pkgs.formats.gitIni {
xdg.configFile."git/personal".text = lib.generators.toGitINI {
user = {
name = cfg.personal.name;
email = cfg.personal.email;

View File

@ -15,8 +15,8 @@ in
config = lib.mkIf cfg.enable {
nmasur.presets.programs = {
fish = lib.mkDefault true;
homebrew = lib.mkDefault true;
fish.enable = lib.mkDefault true;
homebrew.enable = lib.mkDefault true;
};
homebrew.brews = [
@ -27,18 +27,5 @@ in
"notunes" # Don't launch Apple Music with the play button
];
# Include home-manager config in nix-darwin
home-manager = {
sharedModules = [ ../../../../home-manager ];
# Use the system-level nixpkgs instead of Home Manager's
useGlobalPkgs = lib.mkDefault true;
# Install packages to /etc/profiles instead of ~/.nix-profile, useful when
# using multiple profiles for one user
useUserPackages = lib.mkDefault true;
};
};
}