feat: per-host Hyprland monitor config via home-manager
- Split hyprland.conf into common (keybinds, looks, animations) and per-host (monitors, env, workspaces) configs - Add uconsole.conf for CM5 DSI display (720x1280) - Add laptop.conf for NVIDIA + external monitors - home.nix links the correct host config based on hostname - Remove NVIDIA env vars from common config
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
let
|
||||
dotfiles = ./assets/dotfiles;
|
||||
isUconsole = config.networking.hostName == "uConsole";
|
||||
in {
|
||||
home.username = "gortium";
|
||||
home.homeDirectory = "/home/gortium";
|
||||
@@ -38,24 +39,28 @@ in {
|
||||
# yazi
|
||||
".config/yazi/yazi.toml".source = "${dotfiles}/yazi/.config/yazi/yazi.toml";
|
||||
|
||||
# hyprland
|
||||
# hyprland — common config
|
||||
".config/hypr/hyprland.conf".source = "${dotfiles}/hypr/.config/hypr/hyprland.conf";
|
||||
".config/hypr/hypridle.conf".source = "${dotfiles}/hypr/.config/hypr/hypridle.conf";
|
||||
".config/hypr/hyprlock.conf".source = "${dotfiles}/hypr/.config/hypr/hyprlock.conf";
|
||||
".config/hypr/hyprpaper.conf".source = "${dotfiles}/hypr/.config/hypr/hyprpaper.conf";
|
||||
".config/hypr/mocha.conf".source = "${dotfiles}/hypr/.config/hypr/mocha.conf";
|
||||
|
||||
# doom emacs
|
||||
".config/doom/config.el".source = "${dotfiles}/doom/.config/doom/config.el";
|
||||
".config/doom/init.el".source = "${dotfiles}/doom/.config/doom/init.el";
|
||||
".config/doom/packages.el".source = "${dotfiles}/doom/.config/doom/packages.el";
|
||||
# hyprland — host-specific monitor config
|
||||
".config/hypr/host/monitors.conf".source =
|
||||
if isUconsole
|
||||
then "${dotfiles}/hypr/.config/hypr/host/uconsole.conf"
|
||||
else "${dotfiles}/hypr/.config/hypr/host/laptop.conf";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# core
|
||||
git zsh tmux starship
|
||||
# editors
|
||||
neovim kitty
|
||||
# tools
|
||||
btop yazi ripgrep fd fzf
|
||||
# wayland
|
||||
waybar wofi
|
||||
] ++ lib.optionals (!isUconsole) [
|
||||
waybar wofi swww hyprshot
|
||||
] ++ lib.optionals isUconsole [
|
||||
brightnessctl
|
||||
];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user