Compare commits

..

5 Commits

4 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ clean-log:
journalctl --vacuum-size=1G journalctl --vacuum-size=1G
full-auto: submodules-update upgrade clean optimise full-auto: submodules-update upgrade clean optimise
@date
optimise: optimise:
nix-store --optimise nix-store --optimise

View File

@@ -18,4 +18,5 @@ mkIf profiles.isDesktop {
slock # vérouiller l''écran. "cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)" --> en root slock # vérouiller l''écran. "cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)" --> en root
yubikey-personalization-gui # utilisation de la clef Yubikey yubikey-personalization-gui # utilisation de la clef Yubikey
]; ];
security.setuidPrograms = [ "slock" ];
} }

View File

@@ -49,6 +49,7 @@ in
]; ];
shellAliases = { shellAliases = {
byobu = "byobu-tmux"; byobu = "byobu-tmux";
jacques-a-dit = "sudo";
tree = "tree -C"; tree = "tree -C";
tree1 = "tree -d -L 1"; tree1 = "tree -d -L 1";
tree2 = "tree -d -L 2"; tree2 = "tree -d -L 2";
@@ -58,6 +59,10 @@ in
}; };
etc.gitconfig.text = builtins.readFile ./gitconfig; etc.gitconfig.text = builtins.readFile ./gitconfig;
}; };
# programmes qui n'ont pas besoin de sudo pour fonctionner
security.setuidPrograms = [
"mtr"
];
programs.bash = { programs.bash = {
enableCompletion = true; enableCompletion = true;
promptInit = builtins.readFile ./bash-prompt.sh; promptInit = builtins.readFile ./bash-prompt.sh;

View File

@@ -13,5 +13,6 @@ mkIf true {
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
%users ALL = NOPASSWD: ${pkgs.mtr}/bin/mtr %users ALL = NOPASSWD: ${pkgs.mtr}/bin/mtr
%users ALL = NOPASSWD: ${pkgs.slock}/bin/slock
''; '';
} }