nix: condense synced home-manager files
This commit is contained in:
parent
e82eb62686
commit
5cffc3f176
3 changed files with 28 additions and 29 deletions
options/custom
|
@ -70,10 +70,19 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
file = {
|
||||
".zen/profiles.ini" = {
|
||||
file = let
|
||||
sync = source: {
|
||||
source = hm.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/${source}";
|
||||
force = true;
|
||||
};
|
||||
in {
|
||||
".zen/profiles.ini".force = true;
|
||||
|
||||
#!! Imperative synced files
|
||||
".zen/default/extension-preferences.json" = sync "linux/config/firefox/extension-preferences.json";
|
||||
".zen/default/extension-settings.json" = sync "linux/config/firefox/extension-settings.json";
|
||||
".zen/default/zen-keyboard-shortcuts.json" = sync "linux/config/zen/zen-keyboard-shortcuts.json";
|
||||
".zen/default/zen-themes.json" = sync "linux/config/zen/zen-themes.json";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -101,27 +101,17 @@ in {
|
|||
#// profileNames = ["default"];
|
||||
};
|
||||
|
||||
xdg.configFile = with hm.lib.file; {
|
||||
# Imperative symlinks intended to be synced
|
||||
"VSCodium/User/settings.json" = {
|
||||
xdg.configFile = let
|
||||
sync = source: {
|
||||
source = hm.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/${source}";
|
||||
force = true;
|
||||
source = mkOutOfStoreSymlink "${config.custom.sync}/dev/config/vscode/settings.json";
|
||||
};
|
||||
|
||||
"VSCodium/User/keybindings.json" = {
|
||||
force = true;
|
||||
source = mkOutOfStoreSymlink "${config.custom.sync}/dev/config/vscode/keybindings.json";
|
||||
};
|
||||
|
||||
"VSCodium/User/snippets/" = {
|
||||
force = true;
|
||||
source = mkOutOfStoreSymlink "${config.custom.sync}/dev/config/vscode/snippets/";
|
||||
};
|
||||
|
||||
"VSCodium/User/profiles/" = {
|
||||
force = true;
|
||||
source = mkOutOfStoreSymlink "${config.custom.sync}/dev/config/vscode/profiles/";
|
||||
};
|
||||
in {
|
||||
#!! Imperative synced files
|
||||
"VSCodium/User/keybindings.json" = sync "dev/config/vscode/keybindings.json";
|
||||
"VSCodium/User/profiles/" = sync "dev/config/vscode/profiles/";
|
||||
"VSCodium/User/settings.json" = sync "dev/config/vscode/settings.json";
|
||||
"VSCodium/User/snippets/" = sync "dev/config/vscode/snippets/";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.services.easyeffects;
|
||||
hm = config.home-manager.users.${config.custom.username};
|
||||
in {
|
||||
options.custom.services.easyeffects.enable = mkOption {default = false;};
|
||||
|
||||
|
@ -15,16 +16,15 @@ in {
|
|||
|
||||
### PRESETS ###
|
||||
# https://github.com/Digitalone1/EasyEffects-Presets
|
||||
xdg.configFile = with config.home-manager.users.${config.custom.username}.lib.file; {
|
||||
"easyeffects/input" = {
|
||||
xdg.configFile = let
|
||||
sync = source: {
|
||||
source = hm.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/${source}";
|
||||
force = true;
|
||||
source = mkOutOfStoreSymlink "${config.custom.sync}/linux/config/easyeffects/input";
|
||||
};
|
||||
|
||||
"easyeffects/output" = {
|
||||
force = true;
|
||||
source = mkOutOfStoreSymlink "${config.custom.sync}/linux/config/easyeffects/output";
|
||||
};
|
||||
in {
|
||||
#!! Imperative synced files
|
||||
"easyeffects/input" = sync "linux/config/easyeffects/input";
|
||||
"easyeffects/output" = sync "linux/config/easyeffects/output";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue