NixOSConfig/lib/users/manuel.nix

46 lines
911 B
Nix
Raw Normal View History

2024-05-20 22:54:43 +00:00
{ config, user, ... }: {
imports = [
./common.nix
2024-05-16 00:24:25 +00:00
../modules/rclone.nix
];
2024-05-09 00:07:05 +00:00
config = {
home.stateVersion = "23.11";
2024-05-20 22:54:43 +00:00
sops = {
age.sshKeyPaths = [
"${config.home.homeDirectory}/.ssh/id_ed25519"
];
2024-05-16 00:24:25 +00:00
defaultSopsFile = ../../secrets/global.yaml;
secrets.nextcloud_password = {};
2024-05-20 22:54:43 +00:00
};
programs = {
home-manager.enable = true;
2024-05-16 00:24:25 +00:00
rclone = {
enable = true;
systemdDependencies = {
secrets = [
"sops-nix.service"
];
};
configs = {
nextcloud.nextcloud = {
baseUrl = "https://cloud.nuth.ch";
username = "manuth";
obscuredPasswordFile = config.sops.secrets.nextcloud_password.path;
};
};
};
git = {
enable = true;
userName = user.fullName;
userEmail = user.mail;
};
2024-05-09 00:07:05 +00:00
};
};
}