Skip to content

Commit

Permalink
Final tweaks for a working macos config
Browse files Browse the repository at this point in the history
This matches the setup that is currently functioning on my mac.
  • Loading branch information
timraymond committed Nov 26, 2024
1 parent 3beba53 commit 66efb47
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
};

darwinConfigurations = {
macbook = darwin.lib.darwinSystem {
ceres = darwin.lib.darwinSystem {
system = "x86_64-darwin";
modules = [
./modules/darwin.nix
Expand Down
25 changes: 15 additions & 10 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,19 @@
mutableKeys = true;
};

services = {
keybase.enable = true;
kbfs.enable = true;
gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
pinentryPackage = pkgs.pinentry-curses;
enableSshSupport = true;
};
};
services = lib.mkMerge [
{
gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
pinentryPackage = pkgs.pinentry-curses;
enableSshSupport = true;
};
}

(lib.mkIf (!pkgs.stdenv.isDarwin) {
keybase.enable = true;
kbfs.enable = true;
})
];
}
7 changes: 6 additions & 1 deletion modules/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
KeyRepeat = 2;
};
dock = {
autohide = true;
autohide = false;
showhidden = true;
mru-spaces = false;
};
Expand All @@ -32,4 +32,9 @@
programs.zsh.enable = true;

services.nix-daemon.enable = true;

users.users.tim = {
name = "tim";
home = "/Users/tim";
};
}

0 comments on commit 66efb47

Please sign in to comment.