mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
darwin: move these to modules
This commit is contained in:
parent
5b8f1dfa7e
commit
a420e5f531
2 changed files with 7 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue