refactor: move persistence into modules where possible

This commit is contained in:
Moritz Böhme 2024-12-24 13:49:00 +01:00
parent 9f1cf602e5
commit 1764a421ab
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
10 changed files with 45 additions and 14 deletions

View file

@ -12,6 +12,14 @@ in
options.my.services.mullvad.enable = mkEnableOption "mullvad";
config = lib.mkIf cfg.enable {
environment.persistence."/persist" = {
directories = [
"/etc/mullvad-vpn/"
];
users.moritz.directories = [
".config/Mullvad VPN/"
];
};
services.mullvad-vpn.enable = true;
users.users.moritz.packages = with pkgs; [
mullvad-vpn