Skip to content

Commit

Permalink
darwin: move these to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 6, 2024
1 parent 5b8f1df commit a420e5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 0 additions & 8 deletions configurations/darwin/appreciate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ in

security.pam.enableSudoTouchIdAuth = true;

# For home-manager to work.
users.users.${flake.config.me.username} = {
home = "/Users/${flake.config.me.username}";
};

system.keyboard = {
enableKeyMapping = true;
remapCapsLockToControl = true;
Expand All @@ -46,9 +41,6 @@ in
};
};

# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;

# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
Expand Down
7 changes: 7 additions & 0 deletions modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ in
{
imports = [
{
# For home-manager to work.
users.users.${flake.config.me.username} = {
home = "/Users/${flake.config.me.username}";
};
home-manager.users.${config.me.username} = { };
home-manager.sharedModules = [
self.homeModules.default
Expand All @@ -17,4 +21,7 @@ in
inputs.ragenix.darwinModules.default
./all/zsh-completion-fix.nix
];

# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
}

0 comments on commit a420e5f

Please sign in to comment.