mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(myuser): add gpg keys, enable impermanence
This commit is contained in:
parent
4421cc4a3f
commit
b5563fa841
3 changed files with 59 additions and 25 deletions
|
@ -5,6 +5,10 @@
|
|||
...
|
||||
}: let
|
||||
myuser = config.repo.secrets.global.myuser.name;
|
||||
mkUserDirs = map (directory: {
|
||||
inherit directory;
|
||||
mode = "700";
|
||||
});
|
||||
in {
|
||||
users.groups.${myuser}.gid = config.users.users.${myuser}.uid;
|
||||
users.users.${myuser} = {
|
||||
|
@ -20,19 +24,61 @@ in {
|
|||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
# Needed for gtk
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# TODO age.secrets = mapAttrs user.hmConfig.cfg.age.secrets users
|
||||
age.secrets.my-gpg-pubkey-yubikey = {
|
||||
rekeyFile = ./yubikey.gpg.age;
|
||||
group = myuser;
|
||||
mode = "640";
|
||||
};
|
||||
|
||||
# TODO numlock default on in sway and kernel console
|
||||
# TODO make dataset for safe/persist/ and automount it
|
||||
# TODO modularized based on hmConfig
|
||||
environment.persistence."/state".users.${myuser}.directories =
|
||||
mkUserDirs
|
||||
[
|
||||
".cache/fontconfig"
|
||||
".cache/mozilla"
|
||||
".cache/nix" # nix eval cache
|
||||
".cache/nix-index"
|
||||
".cache/nvidia" # GLCache
|
||||
".cache/nvim"
|
||||
".local/share/nvim"
|
||||
".local/state/direnv"
|
||||
".local/state/nix"
|
||||
".local/state/nvim"
|
||||
".local/state/wireplumber"
|
||||
"Downloads"
|
||||
];
|
||||
|
||||
environment.persistence."/persist".users.${myuser}.directories =
|
||||
mkUserDirs
|
||||
[
|
||||
".mozilla"
|
||||
".config/discord" # Bad Discord! BAD! Saves state in ,config tststs
|
||||
".config/Signal" # L take, electron.
|
||||
".local/share/atuin"
|
||||
".local/share/nix" # Repl history
|
||||
"projects"
|
||||
];
|
||||
|
||||
home-manager.users.${myuser} = {
|
||||
imports = [
|
||||
#impermanence.home-manager.impermanence
|
||||
../common
|
||||
./graphical
|
||||
|
||||
./dev.nix
|
||||
./gpg.nix
|
||||
./ssh.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
inherit (config.system) stateVersion;
|
||||
inherit (config.users.users.${myuser}) uid;
|
||||
username = config.users.users.${myuser}.name;
|
||||
# TODO this shall be moved!
|
||||
shellAliases = {
|
||||
p = "cd ~/projects";
|
||||
zf = "zathura --fork";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue