57 lines
1.8 KiB
Nix
57 lines
1.8 KiB
Nix
{ config, lib, ... }: {
|
|
|
|
config = lib.mkMerge [
|
|
|
|
(lib.mkIf config.homeconfig.ags.enable {
|
|
home.file = let
|
|
files = [
|
|
"ags/bluetooth.js"
|
|
"ags/brightness.js"
|
|
"ags/clock.js"
|
|
"ags/config.js"
|
|
"ags/media.js"
|
|
"ags/notif.js"
|
|
"ags/notification.js"
|
|
"ags/power.js"
|
|
"ags/settings.js"
|
|
"ags/systemtray.js"
|
|
"ags/wifi.js"
|
|
"ags/workspaces.js"
|
|
];
|
|
in builtins.map (name: { ".config/${name}" = "./${name}"; }) files;
|
|
|
|
})
|
|
|
|
(lib.mkIf config.homeconfig.hyprland.enable {
|
|
home.file = let
|
|
files = [
|
|
"hypr/otf.conf"
|
|
"hypr/pyprland.toml"
|
|
"hypr/hyprland.conf"
|
|
];
|
|
in builtins.map (name: { ".config/${name}" = "./${name}"; }) files;
|
|
})
|
|
|
|
(lib.mkIf config.homeconfig.swaylock.enable {
|
|
home.file = let
|
|
files = [
|
|
"swaylock/config"
|
|
];
|
|
in builtins.map (name: { ".config/${name}" = "./${name}"; }) files;
|
|
|
|
})
|
|
|
|
(lib.mkIf config.homeconfig.wal.enable {
|
|
home.file = let
|
|
files = [
|
|
"wal/templates/cava_config"
|
|
"wal/templates/colors-ags.css"
|
|
"wal/templates/colors-discord.css"
|
|
"wal/templates/colors-hypr.conf"
|
|
];
|
|
in builtins.map (name: { ".config/${name}" = "./${name}"; }) files;
|
|
|
|
})
|
|
];
|
|
}
|