diff --git a/options/custom/default.nix b/options/custom/default.nix index ea3e5bb..22b83bf 100644 --- a/options/custom/default.nix +++ b/options/custom/default.nix @@ -18,6 +18,7 @@ in { hostname = mkOption {}; realname = mkOption {default = "Myned";}; username = mkOption {default = "myned";}; + sync = mkOption {default = "/home/myned/SYNC";}; ### Hardware width = mkOption {default = 1920;}; diff --git a/options/custom/programs/firefox.nix b/options/custom/programs/firefox.nix index ac3d55a..bfdaa38 100644 --- a/options/custom/programs/firefox.nix +++ b/options/custom/programs/firefox.nix @@ -546,9 +546,7 @@ in { # Imperative symlinks intended to be synced "Downloads/stg" = mkIf config.custom.full { - source = - config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink - "/home/myned/SYNC/common/config/extensions/Simple Tab Groups"; + source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/common/config/extensions/Simple Tab Groups"; }; # Work around icon dissociation due to missing --name flag in actions diff --git a/options/custom/services/modufur.nix b/options/custom/services/modufur.nix index 3e146ed..c02a28b 100644 --- a/options/custom/services/modufur.nix +++ b/options/custom/services/modufur.nix @@ -21,7 +21,7 @@ in { wantedBy = ["default.target"]; serviceConfig = { - WorkingDirectory = ["/home/myned/.git/modufur"]; + WorkingDirectory = ["/home/${config.custom.username}/.git/modufur"]; ExecStart = ["${poetry}/bin/poetry run python -OO run.py >&2"]; }; }; diff --git a/options/custom/settings/packages.nix b/options/custom/settings/packages.nix index 6c60161..8a72251 100644 --- a/options/custom/settings/packages.nix +++ b/options/custom/settings/packages.nix @@ -143,7 +143,7 @@ in { #!! Must be downloaded manually due to licensing # (ciscoPacketTracer8.overrideAttrs { - # src = /home/myned/SYNC/linux/config/cisco/CiscoPacketTracer822_amd64_signed.deb; + # src = ${config.custom.sync}/linux/config/cisco/CiscoPacketTracer822_amd64_signed.deb; # }) ### CLI applications