2024-12-15 23:05:35 +01:00
|
|
|
export const device = #{
|
|
|
|
thinkix: SYSTEM.hostname == "thinkix",
|
2025-02-03 11:14:54 +01:00
|
|
|
desktop: SYSTEM.hostname == "fedora.fritz.box" || SYSTEM.hostname == "fedora",
|
|
|
|
laptop: SYSTEM.hostname == "thinkix"
|
|
|
|
|| SYSTEM.hostname == "frissnix"
|
|
|
|
|| SYSTEM.device_name == "Matthiass MacBook Pro",
|
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
|
|
|
|
2025-02-03 11:14:54 +01:00
|
|
|
macbook: SYSTEM.device_name == "Matthiass MacBook Pro",
|
|
|
|
kenbun: SYSTEM.device_name == "Matthiass MacBook Pro",
|
2024-12-15 23:05:35 +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-02-03 15:25:50 +01:00
|
|
|
"nvim-old": #{enabled: false},
|
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-21 22:44:12 +01:00
|
|
|
|
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, []),
|
2025-02-03 11:31:17 +01:00
|
|
|
"kanata": merge_into_home(device.laptop, []),
|
2024-12-22 16:17:50 +01:00
|
|
|
"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
|
|
|
}
|