beatific: alias cp to -rp
This commit is contained in:
parent
fa46c83f46
commit
ba3c46b8f4
@ -53,8 +53,15 @@ in {
|
||||
# Options to always set
|
||||
networking.hostName = cfg.hostName;
|
||||
nix.extraOptions = "experimental-features = nix-command flakes";
|
||||
# Link /etc/nixos to the flake source
|
||||
environment.etc.nixos.source = ./..;
|
||||
environment.shellAliases.nr = "sudo nixos-rebuild --flake $HOME/nixos-configs";
|
||||
environment.shellAliases = {
|
||||
# Shortcut for nixos-rebuild
|
||||
nr = "sudo nixos-rebuild --flake $HOME/nixos-configs";
|
||||
# Set some user-friendly defaults (use e.g. "command cp" to skip the alias)
|
||||
# -r (recursively copy dirs) -p (preserve mode, ownership, timestamps)
|
||||
cp = "cp -rp";
|
||||
};
|
||||
security.sudo.extraRules = [{
|
||||
users = [ "tvb" ];
|
||||
commands = [ { command = "/run/current-system/sw/bin/nixos-rebuild"; options = [ "NOPASSWD" ]; } ];
|
||||
|
Loading…
Reference in New Issue
Block a user