dots-of-war/yolk.rhai

55 lines
2.5 KiB
Text
Raw Normal View History

2024-12-15 23:05:35 +01:00
export const device = #{
thinkix: SYSTEM.hostname == "thinkix",
2024-12-21 22:42:30 +01:00
desktop: SYSTEM.hostname == "fedora.fritz.box" ||SYSTEM.hostname == "fedora",
2024-12-15 23:05:35 +01:00
laptop: SYSTEM.hostname == "thinkix" || SYSTEM.hostname == "frissnix",
2024-12-22 16:17:50 +01:00
linux: SYSTEM.platform == "Linux",
2025-01-04 20:40:51 +01:00
windows: SYSTEM.platform == "Windows",
2024-12-22 16:17:50 +01:00
macbook: "Matthiass-MacBook-Pro" in SYSTEM.hostname,
kenbun: "Matthiass-MacBook-Pro" in SYSTEM.hostname,
2024-12-15 23:05:35 +01:00
};
2024-12-22 16:17:50 +01:00
2024-12-17 20:46:30 +01:00
private fn merge_into_home(enabled, templates) {
#{ enabled: enabled, targets: "~", strategy: "merge", templates: templates }
}
2024-12-16 18:19:49 +01:00
export let eggs = #{
2025-01-04 20:40:51 +01:00
"alacritty": #{ enabled: !device.windows, targets: "~/.config/alacritty" },
"eww": merge_into_home(device.linux && device.desktop, []),
"eww-bar": merge_into_home(device.linux && device.desktop, []),
2024-12-22 16:17:50 +01:00
"foot": #{ enabled: device.linux, targets: "~/.config/foot", templates: ["foot.ini"] },
2024-12-17 20:46:30 +01:00
"git": merge_into_home(true, [".gitconfig"]),
2025-01-26 17:15:49 +01:00
"niri": #{ enabled: device.linux, targets: "~/.config/niri", templates: ["**/*.kdl"], main_file: "config.kdl" },
2025-01-06 16:37:50 +01:00
"nvim": #{ strategy: "put", targets: "~/.config/nvim", main_file: "init.lua" },
2024-12-22 16:17:50 +01:00
"profile": #{ enabled: device.linux, strategy: "merge", targets: "~" },
2024-12-17 20:46:30 +01:00
"starship": merge_into_home(true, []),
2025-01-21 21:39:39 +01:00
"bat": #{ enabled: device.linux || device.macbook, strategy: "put", targets: "~/.config/bat", templates: ["config"]},
2024-12-22 16:17:50 +01:00
"sway": merge_into_home(device.desktop && device.linux, []),
2025-01-04 20:40:51 +01:00
"zed": #{ enabled: !device.windows, strategy: "put", targets: "~/.config/zed" },
"zsh": merge_into_home(!device.windows, []),
2024-12-22 16:17:50 +01:00
"rofi": merge_into_home(device.linux, []),
"gtk": merge_into_home(device.linux, []),
"scripts": #{ enabled: device.linux, targets: "~/scripts", strategy: "merge" },
2024-12-17 20:46:30 +01:00
2024-12-22 16:17:50 +01:00
"hyprlock": merge_into_home(device.laptop && device.linux, []),
"kanata": merge_into_home(device.laptop && device.linux, []),
"waybar": merge_into_home(device.laptop && device.linux, []),
2024-12-17 20:46:30 +01:00
"karabiner": merge_into_home(device.macbook, []),
2024-12-22 16:17:50 +01:00
"sioyek": merge_into_home(device.linux, []),
2024-12-17 20:46:30 +01:00
2025-01-04 20:42:58 +01:00
"powershell": #{ enabled: device.windows, targets: if device.windows { "~/Documents/PowerShell" } else { "~/.config/powershell" } },
2024-12-17 20:46:30 +01:00
"zathura": merge_into_home(false, []),
"eww-laptop": merge_into_home(false, []),
"hyprland": merge_into_home(false, []),
"kakoune": merge_into_home(false, []),
"tmux": merge_into_home(false, []),
2024-12-17 19:25:21 +01:00
// This is just random files that should be in the dotfiles, but shouldn't ever be deployed
2024-12-17 20:46:30 +01:00
"other-dotfiles-stuff": #{ enabled: false, targets: "~/this-shouldnt-exist" },
2024-12-16 18:19:49 +01:00
}