NixOS/home/default.nix

48 lines
983 B
Nix
Raw Normal View History

2024-08-07 16:31:12 +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
2024-06-12 09:54:11 +07:00
./direnv.nix
./config/ideavim
./secrets.nix
];
home = {
2024-06-12 18:09:56 +07:00
username = user.name;
homeDirectory = "/home/${user.name}";
stateVersion = stateVersion;
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";
};
};
2024-06-12 09:54:11 +07:00
}