2024-06-12 18:09:56 +07:00
|
|
|
{ config, profile-path, ... }:
|
|
|
|
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-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;
|
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-06-12 09:54:11 +07:00
|
|
|
}
|