Compare commits

...

6 Commits

5 changed files with 9 additions and 0 deletions

View File

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

View File

@@ -20,6 +20,7 @@ in {
users.extraUsers.root = {
openssh.authorizedKeys.keys = [
mbpJPierre03
radxJPierre03
radxRoot
phenomTaeradan

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
yubikey-personalization-gui # utilisation de la clef Yubikey
];
security.setuidPrograms = [ "slock" ];
}

View File

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

View File

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