diff --git a/hosts/Anton/default.nix b/hosts/Anton/default.nix index c1128c9..d755ee7 100644 --- a/hosts/Anton/default.nix +++ b/hosts/Anton/default.nix @@ -23,6 +23,7 @@ common.syncthing = { enable = true; + basePath = "/mnt/data/services/syncthing/data"; devices = { Lenni = { id = "XS6NR2Q-DHVB5G4-P43CHWR-TVBIY5A-FCIS7CU-S5UVNZA-5YPJYST-2EO2GAG"; }; Puenktchen = { id = "VP3YVIM-JNSZTXV-7AS7FA2-3W5QKH6-XOWXX7N-STUR4JR-PR6SPCV-HJZMAAN"; }; diff --git a/modules/default/common/syncthing.nix b/modules/default/common/syncthing.nix index 12b5eae..3a9df1d 100644 --- a/modules/default/common/syncthing.nix +++ b/modules/default/common/syncthing.nix @@ -15,8 +15,13 @@ in options.id = lib.mkOption { type = lib.types.str; }; }); - }; + + basePath = lib.mkOption { + type = lib.types.str; + default = "/mnt/data"; + }; + }; }; @@ -31,32 +36,32 @@ in folders = lib.mkDefault { "Documents" = { id = "jtl6g-qjmwo"; - path = "/mnt/data/Documents"; + path = config.common.syncthing.basePath + "/Documents"; devices = deviceList; }; "Enpass" = lib.mkDefault { id = "ciksm-xsw4m"; - path = "/mnt/data/Enpass"; + path = config.common.syncthing.basePath + "/Enpass"; devices = deviceList; }; "Pictures" = lib.mkDefault { id = "po4qj-q9t0t"; - path = "/mnt/data/Pictures"; + path = config.common.syncthing.basePath + "/Pictures"; devices = deviceList; }; "Videos" = lib.mkDefault { id = "4wqf5-xasng"; - path = "/mnt/data/Videos"; + path = config.common.syncthing.basePath + "/Videos"; devices = deviceList; }; "Notes" = lib.mkDefault { id = "oc61n-iewgj"; - path = "/mnt/data/Notes"; + path = config.common.syncthing.basePath + "/Notes"; devices = deviceList; }; "Music" = lib.mkDefault { id = "xxh8a-3y2tq"; - path = "/mnt/data/Music"; + path = config.common.syncthing.basePath + "/Music"; devices = deviceList; }; }; diff --git a/modules/default/home-manager/desktop/options.nix b/modules/default/home-manager/desktop/options.nix index 557e40d..870069d 100644 --- a/modules/default/home-manager/desktop/options.nix +++ b/modules/default/home-manager/desktop/options.nix @@ -2,8 +2,14 @@ { options = { desktop = { - kitty.enable = lib.mkEnableOption { default = config.desktop.enable; }; - vscodium.enable = lib.mkEnableOption { default = config.desktop.enable; }; + kitty.enable = lib.mkOption { + default = config.desktop.enable; + type = lib.types.bool; + }; + vscodium.enable = lib.mkOption { + default = config.desktop.enable; + type = lib.types.bool; + }; }; }; }