fix: move sudo settings from hpc module to actual nodes
This commit is contained in:
@@ -25,6 +25,10 @@ in {
|
|||||||
# services.udev.extraRules = ''
|
# services.udev.extraRules = ''
|
||||||
# KERNEL=="ibp65s0", SUBSYSTEM=="net", ATTR{create_child}:="0x7666"
|
# KERNEL=="ibp65s0", SUBSYSTEM=="net", ATTR{create_child}:="0x7666"
|
||||||
# '';
|
# '';
|
||||||
|
security.sudo.extraConfig = ''
|
||||||
|
%sif ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
||||||
|
%admin ALL=(admin) NOPASSWD: ALL
|
||||||
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
rdma-core
|
rdma-core
|
||||||
@@ -40,9 +44,9 @@ in {
|
|||||||
users = true;
|
users = true;
|
||||||
opt = true;
|
opt = true;
|
||||||
work = false;
|
work = false;
|
||||||
data = false;
|
data = true;
|
||||||
|
ceph = true;
|
||||||
backup = false;
|
backup = false;
|
||||||
ceph = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -283,9 +283,11 @@ in
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
|
%sif ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
||||||
|
%admin ALL=(admin) NOPASSWD: ALL
|
||||||
# gitlab-runner ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
# gitlab-runner ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
||||||
# '';
|
'';
|
||||||
|
|
||||||
security.pam = {
|
security.pam = {
|
||||||
services.sshd.googleAuthenticator.enable = true;
|
services.sshd.googleAuthenticator.enable = true;
|
||||||
|
|||||||
@@ -82,10 +82,6 @@ let
|
|||||||
turbovnc
|
turbovnc
|
||||||
emacs
|
emacs
|
||||||
];
|
];
|
||||||
security.sudo.extraConfig = ''
|
|
||||||
%sif ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
|
||||||
%admin ALL=(admin) NOPASSWD: ALL
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
compute = {
|
compute = {
|
||||||
|
|||||||
@@ -278,9 +278,11 @@ in
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
|
%sif ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
||||||
|
%admin ALL=(admin) NOPASSWD: ALL
|
||||||
# gitlab-runner ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
# gitlab-runner ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/singularity
|
||||||
# '';
|
'';
|
||||||
|
|
||||||
security.pam = {
|
security.pam = {
|
||||||
services.sshd.googleAuthenticator.enable = true;
|
services.sshd.googleAuthenticator.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user