Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
53
module/user/kirbara.nix
Normal file
53
module/user/kirbara.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
name = "kirbara";
|
||||
shell = "zsh";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
/mnt/infra/private/${name}.nix
|
||||
];
|
||||
|
||||
meta = {
|
||||
${name} = {
|
||||
username = name;
|
||||
key = "3AE5562664F29B2C4216E43FD7E63AD0019E75D9";
|
||||
keygrip = [ "8A797A710944CEB680473925CDAB0DBF8CF6E83F" ];
|
||||
authorizedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINqTOL78DmmcbounEKN2eJhJkBdTLWYj23pNVDxO5mCN"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
den.aspects = {
|
||||
${name} = {
|
||||
nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
nix.settings.trusted-users = [ name ];
|
||||
programs.${shell}.enable = true;
|
||||
sops.age.keyFile = "/home/${name}/.config/sops/age/keys.txt";
|
||||
users.users.${name} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"audio"
|
||||
"input"
|
||||
"networkmanager"
|
||||
"sound"
|
||||
"tty"
|
||||
"adbusers"
|
||||
"lp"
|
||||
"scanner"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.${shell};
|
||||
openssh.authorizedKeys.keys = config.meta.${name}.authorizedKeys;
|
||||
initialPassword = "id";
|
||||
};
|
||||
};
|
||||
homeManager = {
|
||||
programs.${shell}.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue