This commit is contained in:
2026-01-09 01:41:57 +08:00
parent c1d1b12a26
commit edb0343046
7 changed files with 232 additions and 8 deletions
+18 -1
View File
@@ -51,6 +51,23 @@
# Set primary user for system defaults
system.primaryUser = "df";
# Allow darwin-rebuild switch without sudo password
environment.etc = {
"sudoers.d/10-nix-commands".text = let
commands = [
"/usr/bin/chsh"
"/run/current-system/sw/bin/darwin-rebuild"
"/run/current-system/sw/bin/nix*"
"/run/current-system/sw/bin/ln"
"/nix/store/*/activate"
"/bin/launchctl"
];
commandsString = builtins.concatStringsSep ", " commands;
in ''
%admin ALL=(ALL:ALL) NOPASSWD: ${commandsString}
'';
};
# System-wide packages
environment.systemPackages = with pkgs; [
vim
@@ -59,7 +76,7 @@
# macOS system defaults
system.defaults = {
dock = {
autohide = true;
autohide = false;
orientation = "bottom";
showhidden = true;
mru-spaces = false;