refactor: move persistence into modules where possible
This commit is contained in:
parent
9f1cf602e5
commit
1764a421ab
10 changed files with 45 additions and 14 deletions
|
|
@ -15,6 +15,10 @@ in
|
|||
options.my.services.kdeconnect.enable = mkEnableOption "kdeconnect";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.persistence."/persist".users.moritz.directories = [
|
||||
".config/kdeconnect"
|
||||
];
|
||||
|
||||
home-manager.users.moritz.services.kdeconnect.enable = mkIf (!config.my.programs.gnome.enable) true;
|
||||
networking.firewall = {
|
||||
allowedTCPPortRanges = [ ports ];
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -15,6 +15,11 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.persistence."/persist".users.moritz.directories = [
|
||||
".SynologyDrive/data"
|
||||
".SynologyDrive/log"
|
||||
];
|
||||
|
||||
systemd.user.services.synology-drive = {
|
||||
after = [ "graphical-session.target" "network.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue