dots-of-war/yolk.rhai

48 lines
1.8 KiB
Text
Raw Normal View History

2024-12-15 22:05:35 +00:00
export const device = #{
thinkix: SYSTEM.hostname == "thinkix",
desktop: SYSTEM.hostname == "fedora.fritz.box",
laptop: SYSTEM.hostname == "thinkix" || SYSTEM.hostname == "frissnix",
2024-12-17 18:25:21 +00:00
macbook: false,
2024-12-15 22:05:35 +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" },
"eww": merge_into_home(true, []),
"eww-bar": merge_into_home(true, []),
"foot": #{ strategy: "merge", targets: "~", templates: [".config/foot/foot.ini"] },
"git": merge_into_home(true, [".gitconfig"]),
"niri": #{ targets: "~/.config/niri", templates: ["**/*.kdl"] },
"nvim": #{ strategy: "merge", targets: "~", main_file: ".config/nvim/fnl/main.fnl" },
"profile": merge_into_home(true, []),
"starship": merge_into_home(true, []),
"sway": merge_into_home(true, []),
"zed": merge_into_home(true, []),
"zsh": merge_into_home(true, []),
"rofi": merge_into_home(true, []),
"gtk": merge_into_home(true, []),
"scripts": #{ targets: "~/scripts", strategy: "merge" },
"hyprlock": merge_into_home(device.laptop, []),
"kanata": merge_into_home(device.laptop, []),
"waybar": merge_into_home(device.laptop, []),
"karabiner": merge_into_home(device.macbook, []),
"powershell": merge_into_home(false, []),
"sioyek": 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
}