oeu
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user