NixOS/home/default.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2024-11-20 19:09:23 +07:00
{
config,
profile-path,
pkgs,
...
}:
2024-06-12 18:09:56 +07:00
let
user = config.profile.user;
stateVersion = config.profile.system.stateVersion;
in
2024-06-12 09:54:11 +07:00
{
imports = [
profile-path
./programs
./modules
2024-08-05 12:06:07 +07:00
./games
./environments
2024-06-12 09:54:11 +07:00
./direnv.nix
./secrets.nix
2024-11-08 09:01:09 +07:00
./ideavimrc.nix
2024-06-12 09:54:11 +07:00
];
home = {
2024-06-12 18:09:56 +07:00
username = user.name;
homeDirectory = "/home/${user.name}";
stateVersion = stateVersion;
2024-11-20 19:09:23 +07:00
packages = with pkgs; [ btop ];
2024-06-12 09:54:11 +07:00
};
2024-06-12 18:09:56 +07:00
programs.home-manager.enable = true;
2024-06-12 09:54:11 +07:00
systemd.user.sessionVariables = {
2024-06-12 18:09:56 +07:00
XDG_CONFIG_HOME = "/home/${user.name}/.config";
2024-06-12 09:54:11 +07:00
};
2024-06-12 18:09:56 +07:00
services.mpris-proxy.enable = config.profile.mpris-proxy.enable;
sops.secrets =
let
sopsFile = ../secrets/ssh.yaml;
in
{
"ssh/id_ed25519/public" = {
inherit sopsFile;
path = "${config.home.homeDirectory}/.ssh/id_ed25519.pub";
mode = "0444";
};
"ssh/id_ed25519/private" = {
inherit sopsFile;
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
mode = "0400";
};
# "netrc" = {
# sopsFile = ../secrets/netrc.yaml;
# path = "${config.home.homeDirectory}/.netrc";
# mode = "0400";
# };
};
2024-06-12 09:54:11 +07:00
}