dots-of-war/yolk.rhai

53 lines
2.2 KiB
Text
Raw Normal View History

2024-12-15 22:05:35 +00:00
export const device = #{
thinkix: SYSTEM.hostname == "thinkix",
2024-12-21 21:42:30 +00:00
desktop: SYSTEM.hostname == "fedora.fritz.box" ||SYSTEM.hostname == "fedora",
2024-12-15 22:05:35 +00:00
laptop: SYSTEM.hostname == "thinkix" || SYSTEM.hostname == "frissnix",
2024-12-22 15:17:50 +00:00
linux: SYSTEM.platform == "Linux",
macbook: "Matthiass-MacBook-Pro" in SYSTEM.hostname,
kenbun: "Matthiass-MacBook-Pro" in SYSTEM.hostname,
2024-12-15 22:05:35 +00:00
};
2024-12-22 15:17:50 +00:00
2024-12-17 19:46:30 +00:00
private fn merge_into_home(enabled, templates) {
#{ enabled: enabled, targets: "~", strategy: "merge", templates: templates }
}
2024-12-16 17:19:49 +00:00
export let eggs = #{
2024-12-17 19:46:30 +00:00
"alacritty": #{ targets: "~/.config/alacritty" },
2024-12-18 11:47:46 +00:00
"eww": merge_into_home(device.desktop, []),
"eww-bar": merge_into_home(device.desktop, []),
2024-12-22 15:17:50 +00:00
"foot": #{ enabled: device.linux, targets: "~/.config/foot", templates: ["foot.ini"] },
2024-12-17 19:46:30 +00:00
"git": merge_into_home(true, [".gitconfig"]),
2024-12-22 15:17:50 +00:00
"niri": #{ enabled: device.linux, targets: "~/.config/niri", templates: ["**/*.kdl"] },
2024-12-21 21:42:30 +00:00
"nvim": #{ strategy: "put", targets: "~/.config/nvim", main_file: "fnl/main.fnl" },
2024-12-22 15:17:50 +00:00
"profile": #{ enabled: device.linux, strategy: "merge", targets: "~" },
2024-12-17 19:46:30 +00:00
"starship": merge_into_home(true, []),
2024-12-22 15:17:50 +00:00
"sway": merge_into_home(device.desktop && device.linux, []),
2024-12-21 21:42:30 +00:00
"zed": #{ strategy: "put", targets: "~/.config/zed" },
2024-12-17 19:46:30 +00:00
"zsh": merge_into_home(true, []),
2024-12-22 15:17:50 +00:00
"rofi": merge_into_home(device.linux, []),
"gtk": merge_into_home(device.linux, []),
"scripts": #{ enabled: device.linux, targets: "~/scripts", strategy: "merge" },
2024-12-17 19:46:30 +00:00
2024-12-22 15:17:50 +00: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 19:46:30 +00:00
"karabiner": merge_into_home(device.macbook, []),
2024-12-22 15:17:50 +00:00
"sioyek": merge_into_home(device.linux, []),
2024-12-17 19:46:30 +00:00
"powershell": merge_into_home(false, []),
"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 18:25:21 +00:00
// This is just random files that should be in the dotfiles, but shouldn't ever be deployed
2024-12-17 19:46:30 +00:00
"other-dotfiles-stuff": #{ enabled: false, targets: "~/this-shouldnt-exist" },
2024-12-16 17:19:49 +00:00
}