home-manager hyprland

This commit is contained in:
2025-08-09 17:25:32 -05:00
parent 9ce2cedae7
commit cc1daade5f
2 changed files with 22 additions and 12 deletions

View File

@@ -14,17 +14,27 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
pyprland pyprland
]; ];
wayland.windowManager.hyprland = {
home.file.".config/hypr/hyprland.conf".text = let enable = true;
monitor = if config.homeconfig.host == "laptop" then ''
monitor=eDP-1,1920x1080@60,0x0,1 systemd = {
'' else if config.homeconfig.host == "homebox" then '' enable = true;
monitor=HDMI-A-2,1920x1080@60,0x0,1 variables = [ "--all" ];
monitor=HEADLESS-2,1920x1080@60,0x0,1 };
exec-once=kitty -e tmux new-session -s hypr
'' else ''''; extraConfig = let
in '' monitor = if config.homeconfig.host == "laptop" then ''
source = /home/nathan/.config/hypr/main.conf monitor=eDP-1,1920x1080@60,0x0,1
'' + monitor; '' else if config.homeconfig.host == "homebox" then ''
monitor=HDMI-A-2,1920x1080@60,0x0,1
monitor=HEADLESS-2,1920x1080@60,0x0,1
exec-once=kitty -e tmux new-session -s hypr
'' else '''';
in ''
source = /home/nathan/.config/hypr/main.conf
'' + monitor;
};
}; };
} }

View File

@@ -191,7 +191,7 @@
}; };
nix = { nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" "unstable=${inputs.nixpkgs-us}" ]; nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
}; };