mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:09:22 +08:00
modules.user.zgq: init
This commit is contained in:
@@ -63,7 +63,7 @@ inputs:
|
||||
};
|
||||
};
|
||||
packages.vasp = {};
|
||||
user.users = [ "chn" "xll" "zem" "yjq" "gb" "wp" "hjp" "wm" "GROUPIII-1" "GROUPIII-2" "GROUPIII-3" ];
|
||||
user.users = [ "chn" "xll" "zem" "yjq" "gb" "wp" "hjp" "wm" "GROUPIII-1" "GROUPIII-2" "GROUPIII-3" "zgq" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ inputs:
|
||||
pen = 1019;
|
||||
reonokiy = 1020;
|
||||
zqq = 1021;
|
||||
zgq = 1022;
|
||||
misskey-misskey = 2000;
|
||||
misskey-misskey-old = 2001;
|
||||
frp = 2002;
|
||||
@@ -118,7 +119,12 @@ inputs:
|
||||
users.users.root =
|
||||
{
|
||||
shell = inputs.pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [(builtins.readFile ./chn/id_ed25519_sk.pub)];
|
||||
openssh.authorizedKeys.keys = inputs.lib.mkMerge
|
||||
[
|
||||
[(builtins.readFile ./chn/id_ed25519_sk.pub)]
|
||||
(inputs.lib.mkIf (inputs.config.nixos.model.cluster.clusterName or null == "srv1")
|
||||
[(builtins.readFile ./zgq/id_ed25519.pub)])
|
||||
];
|
||||
hashedPassword = "$y$j9T$.UyKKvDnmlJaYZAh6./rf/$65dRqishAiqxCE6LEMjqruwJPZte7uiyYLVKpzdZNH5";
|
||||
};
|
||||
home-manager.users.root = homeInputs:
|
||||
|
||||
8
modules/user/zgq/default.nix
Normal file
8
modules/user/zgq/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
inputs:
|
||||
{
|
||||
config = let inherit (inputs.config.nixos) user; in inputs.lib.mkIf (builtins.elem "zgq" user.users)
|
||||
{
|
||||
users.users.zgq.extraGroups = inputs.lib.mkIf (inputs.config.nixos.model.cluster.clusterName or null == "srv1")
|
||||
[ "wheel" ];
|
||||
};
|
||||
}
|
||||
1
modules/user/zgq/id_ed25519.pub
Normal file
1
modules/user/zgq/id_ed25519.pub
Normal file
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKHnhPmiGpuK0OlMPLM9QFYpjcr5/WoG8IFoC9EDLSqc zgq
|
||||
Reference in New Issue
Block a user