flakes/users/hana/default.nix

34 lines
976 B
Nix
Raw Permalink Normal View History

2022-02-02 00:50:39 +07:00
{ config, lib, modules, pkgs, ... }: {
programs.zsh.enable = true;
2022-02-02 00:50:39 +07:00
users.users.hana = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
uid = 1002;
hashedPassword = "$y$j9T$3xCNDudmfrIu5VfQQoDkj/$ugzJWq0gORN9jnhDsREu31CkL3zwniQu6KoLbmg6Wr/";
2022-11-27 14:30:59 +07:00
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPru5eTBvHJ4ZmrrzPRHCGM09wQP/ZHSaKYalDuBVO15 rin@blossom"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ5l9t8dc6mPsKKYqZlPKvhOdyqz+DS5UOcvHuh3uVGt @strawberry"
];
2022-02-02 00:50:39 +07:00
};
home-manager.users.hana = { config, enableGUI, lib, pkgs, ... }: {
home = {
username = "hana";
homeDirectory = "/home/hana";
2024-03-13 16:00:37 +11:00
stateVersion = "23.11";
2022-02-02 00:50:39 +07:00
};
imports = with modules.user; [
direnv
git
2022-02-02 11:00:43 +07:00
neovim-minimal
2022-02-02 00:50:39 +07:00
sessionVariables
zsh
];
programs.git.signing.signByDefault = lib.mkForce false;
2022-08-09 15:17:30 +07:00
programs.zsh.history.path = lib.mkForce "/persist/hana/zsh_history";
2022-02-02 00:50:39 +07:00
};
}