custom: add sync directory option
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
927a0a054d
commit
7e47ef95ef
4 changed files with 4 additions and 5 deletions
|
@ -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;};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue