nixos/modules/user/root/default.nix

32 lines
870 B
Nix
Raw Normal View History

2023-11-19 17:15:44 +08:00
inputs:
{
config =
let
inherit (inputs.lib) mkIf;
2024-03-19 20:01:45 +08:00
inherit (inputs.config.nixos) user;
2023-12-09 20:01:50 +08:00
in
2023-11-19 17:15:44 +08:00
{
users.users.root =
{
shell = inputs.pkgs.zsh;
autoSubUidGidRange = true;
hashedPassword = "$y$j9T$.UyKKvDnmlJaYZAh6./rf/$65dRqishAiqxCE6LEMjqruwJPZte7uiyYLVKpzdZNH5";
openssh.authorizedKeys.keys =
[
(builtins.concatStringsSep ""
[
"sk-ssh-ed25519@openssh.com "
"AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIEU/JPpLxsk8UWXiZr8CPNG+4WKFB92o1Ep9OEstmPLzAAAABHNzaDo= "
"chn@pc"
])
];
};
home-manager.users.root =
{
2024-03-19 20:01:45 +08:00
imports = user.sharedModules;
2023-11-19 17:15:44 +08:00
config.programs.git =
{ extraConfig.core.editor = inputs.lib.mkForce "vim"; userName = "chn"; userEmail = "chn@chn.moe"; };
};
};
}