dotfiles.nix/nixos/common/users/sajenim/default.nix

38 lines
949 B
Nix
Raw Permalink Normal View History

2024-01-14 06:29:18 +08:00
{
2024-08-08 09:02:42 +08:00
inputs,
outputs,
pkgs,
config,
...
}: {
2024-01-21 22:32:25 +08:00
imports = [
inputs.home-manager.nixosModules.home-manager
];
2024-09-07 15:48:27 +08:00
2024-01-14 06:29:18 +08:00
users.users.sajenim = {
2024-08-08 09:02:42 +08:00
isNormalUser = true;
extraGroups = ["audio" "docker" "networkmanager" "wheel" "adbusers"];
shell = pkgs.zsh;
openssh.authorizedKeys.keyFiles = [
"${inputs.self}/home-manager/sajenim/sajenim_sk.pub"
2024-10-01 11:57:53 +08:00
"${inputs.self}/home-manager/sajenim/p6p_biometric.pub"
2024-08-08 09:02:42 +08:00
];
hashedPassword = "$y$j9T$qIhW5qL9J9w.w6JWa.bGo/$oddG3HJyOZ1mwHzYnYPJ/MzN38oHEBEvPDc0sB3rAf9";
2024-01-14 06:29:18 +08:00
};
users.mutableUsers = false;
home-manager = {
2024-08-08 09:02:42 +08:00
extraSpecialArgs = {inherit inputs outputs;};
2024-01-14 06:29:18 +08:00
users = {
2024-01-21 21:03:57 +08:00
sajenim = import "${inputs.self}/home-manager/sajenim/${config.networking.hostName}.nix";
2024-01-14 06:29:18 +08:00
};
backupFileExtension = "bak";
2024-01-14 06:29:18 +08:00
};
2024-09-07 15:48:27 +08:00
fileSystems."/home/sajenim" = {
device = "/dev/disk/by-label/data";
fsType = "btrfs";
options = ["subvol=sajenim" "compress=zstd"];
};
2024-01-14 06:29:18 +08:00
}