darwin: move these to modules

This commit is contained in:
Sridhar Ratnakumar 2024-10-06 16:54:58 -04:00
parent 5b8f1dfa7e
commit a420e5f531
No known key found for this signature in database
2 changed files with 7 additions and 8 deletions

View file

@ -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;
@ -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;

View file

@ -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
@ -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;
}