1
1
Fork 0

custom: add sync directory option

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-11-17 14:14:42 -06:00
parent 927a0a054d
commit 7e47ef95ef
Signed by: myned
GPG key ID: C7224454F7881A34
4 changed files with 4 additions and 5 deletions

View file

@ -18,6 +18,7 @@ in {
hostname = mkOption {}; hostname = mkOption {};
realname = mkOption {default = "Myned";}; realname = mkOption {default = "Myned";};
username = mkOption {default = "myned";}; username = mkOption {default = "myned";};
sync = mkOption {default = "/home/myned/SYNC";};
### Hardware ### Hardware
width = mkOption {default = 1920;}; width = mkOption {default = 1920;};

View file

@ -546,9 +546,7 @@ in {
# Imperative symlinks intended to be synced # Imperative symlinks intended to be synced
"Downloads/stg" = mkIf config.custom.full { "Downloads/stg" = mkIf config.custom.full {
source = source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/common/config/extensions/Simple Tab Groups";
config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink
"/home/myned/SYNC/common/config/extensions/Simple Tab Groups";
}; };
# Work around icon dissociation due to missing --name flag in actions # Work around icon dissociation due to missing --name flag in actions

View file

@ -21,7 +21,7 @@ in {
wantedBy = ["default.target"]; wantedBy = ["default.target"];
serviceConfig = { serviceConfig = {
WorkingDirectory = ["/home/myned/.git/modufur"]; WorkingDirectory = ["/home/${config.custom.username}/.git/modufur"];
ExecStart = ["${poetry}/bin/poetry run python -OO run.py >&2"]; ExecStart = ["${poetry}/bin/poetry run python -OO run.py >&2"];
}; };
}; };

View file

@ -143,7 +143,7 @@ in {
#!! Must be downloaded manually due to licensing #!! Must be downloaded manually due to licensing
# (ciscoPacketTracer8.overrideAttrs { # (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 ### CLI applications