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
|
2024-06-12 18:15:03 +07:00
|
|
|
./modules
|
2024-08-05 12:06:07 +07:00
|
|
|
./games
|
2024-08-22 10:43:30 +07:00
|
|
|
./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;
|
2024-06-17 16:26:56 +07:00
|
|
|
|
|
|
|
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-11-24 12:44:38 +07:00
|
|
|
# "netrc" = {
|
|
|
|
# sopsFile = ../secrets/netrc.yaml;
|
|
|
|
# path = "${config.home.homeDirectory}/.netrc";
|
|
|
|
# mode = "0400";
|
|
|
|
# };
|
2024-06-17 16:26:56 +07:00
|
|
|
};
|
2024-06-12 09:54:11 +07:00
|
|
|
}
|