Split hypr config into machine-specific components
This commit is contained in:
parent
5e2f3c5fa5
commit
02e8a0cd62
2
nixos/home-manager/env/common-wayland.nix
vendored
2
nixos/home-manager/env/common-wayland.nix
vendored
|
@ -7,6 +7,8 @@
|
|||
];
|
||||
home.packages = with pkgs; [
|
||||
swayimg
|
||||
hyprpaper
|
||||
dolphin
|
||||
jq
|
||||
socat
|
||||
];
|
||||
|
|
13
nixos/home-manager/env/config/hypr/hyprland-H0615.conf
vendored
Normal file
13
nixos/home-manager/env/config/hypr/hyprland-H0615.conf
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
monitor=HDMI-A-1,preferred,auto,auto
|
||||
monitor=DP-1,preferred,auto,auto,transform,1
|
||||
|
||||
exec-once=hyprpaper -c ~/.dotfiles/nixos/home-manager/env/config/hypr/hyprpaper-H0615.conf
|
||||
|
||||
wsbind=1,HDMI-A-1
|
||||
wsbind=2,HDMI-A-1
|
||||
wsbind=3,HDMI-A-1
|
||||
wsbind=4,HDMI-A-1
|
||||
wsbind=5,HDMI-A-1
|
||||
wsbind=6,HDMI-A-1
|
||||
wsbind=7,HDMI-A-1
|
||||
wsbind=8,HDMI-A-1
|
10
nixos/home-manager/env/config/hypr/hyprland-vanguard.conf
vendored
Normal file
10
nixos/home-manager/env/config/hypr/hyprland-vanguard.conf
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
device:logitech-usb-receiver-mouse {
|
||||
left_handed = yes
|
||||
}
|
||||
|
||||
misc {
|
||||
vrr = 2
|
||||
}
|
||||
|
||||
monitor=DP-1,highrr,auto,1
|
||||
exec-once=hyprpaper -c ~/.dotfiles/nixos/home-manager/env/config/hypr/hyprpaper-vanguard.conf
|
24
nixos/home-manager/env/config/hypr/hyprland.conf
vendored
24
nixos/home-manager/env/config/hypr/hyprland.conf
vendored
|
@ -1,14 +1,13 @@
|
|||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
#monitor=,preferred,auto,auto
|
||||
monitor=HDMI-A-1,preferred,auto,auto
|
||||
monitor=DP-1,preferred,auto,auto,transform,1
|
||||
|
||||
monitor=,preferred,auto,auto
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
exec-once = dunst & hyprpaper -c ~/.dotfiles/nixos/home-manager/env/config/hypr/hyprpaper.conf & waybar -c ~/.dotfiles/nixos/home-manager/env/config/waybar/config-hyprland & eww daemon
|
||||
exec-once = dunst
|
||||
exec-once = waybar -c ~/.dotfiles/nixos/home-manager/env/config/waybar/config-hyprland
|
||||
exec-once = eww daemon
|
||||
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
@ -93,10 +92,8 @@ gestures {
|
|||
workspace_swipe = off
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||
device:epic-mouse-v1 {
|
||||
sensitivity = -0.5
|
||||
misc {
|
||||
disable_autoreload = yes
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
@ -112,15 +109,6 @@ windowrule = workspace 6, ^(Steam)$
|
|||
windowrule = workspace 7, ^(Bitwarden)$
|
||||
windowrule = workspace 8, ^(Nxplayer.bin)$
|
||||
|
||||
wsbind=1,HDMI-A-1
|
||||
wsbind=2,HDMI-A-1
|
||||
wsbind=3,HDMI-A-1
|
||||
wsbind=4,HDMI-A-1
|
||||
wsbind=5,HDMI-A-1
|
||||
wsbind=6,HDMI-A-1
|
||||
wsbind=7,HDMI-A-1
|
||||
wsbind=8,HDMI-A-1
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
|
|
|
@ -4,5 +4,4 @@ preload = ~/.dotfiles/wallpaper/images_dark/1080x1920.png
|
|||
|
||||
wallpaper = HDMI-A-1,~/.dotfiles/wallpaper/images_dark/1920x1200.png
|
||||
wallpaper = DP-1,~/.dotfiles/wallpaper/images_dark/1080x1920.png
|
||||
wallpaper = DSI-1,~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
wallpaper = *,~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
wallpaper = ,~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
4
nixos/home-manager/env/config/hypr/hyprpaper-northstar.conf
vendored
Normal file
4
nixos/home-manager/env/config/hypr/hyprpaper-northstar.conf
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
preload = ~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
|
||||
wallpaper = DSI-1,~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
wallpaper = ,~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
3
nixos/home-manager/env/config/hypr/hyprpaper-vanguard.conf
vendored
Normal file
3
nixos/home-manager/env/config/hypr/hyprpaper-vanguard.conf
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
preload = ~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
|
||||
wallpaper = DP-1,~/.dotfiles/wallpaper/images_dark/1920x1080.png
|
|
@ -39,7 +39,7 @@
|
|||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FiraCode Nerd Font, FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
|
|
10
nixos/home-manager/env/hyprland.nix
vendored
10
nixos/home-manager/env/hyprland.nix
vendored
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
let
|
||||
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
||||
|
||||
|
@ -13,19 +13,11 @@ in
|
|||
./common-wayland.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
dolphin
|
||||
];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = true;
|
||||
};
|
||||
extraConfig =
|
||||
builtins.readFile (./config/hypr/macchiato.conf)
|
||||
+ "\n"
|
||||
+ builtins.readFile (./config/hypr/hyprland.conf);
|
||||
};
|
||||
}
|
||||
|
|
8
nixos/home-manager/env/sway.nix
vendored
8
nixos/home-manager/env/sway.nix
vendored
|
@ -1,12 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./common-wayland.nix ];
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
dolphin
|
||||
jq
|
||||
socat
|
||||
];
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
@ -21,5 +21,10 @@
|
|||
userEmail = "evie.litherland-smith@ukaea.uk";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.extraConfig =
|
||||
builtins.readFile (./env/config/hypr/macchiato.conf) + "\n"
|
||||
+ builtins.readFile (./env/config/hypr/hyprland.conf) + "\n"
|
||||
+ builtins.readFile (./env/config/hypr/hyprland-H0615.conf);
|
||||
|
||||
home.stateVersion = "22.11";
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./env/hyprland.nix
|
||||
./env/sway.nix
|
||||
./packages/env
|
||||
./packages/tui
|
||||
./packages/gui/browser.nix
|
||||
|
@ -20,16 +21,10 @@
|
|||
userEmail = "evie@xenia.me.uk";
|
||||
};
|
||||
|
||||
# Fix for logitech MX master button ordering...
|
||||
programs.bash.initExtra = ''
|
||||
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
|
||||
'';
|
||||
programs.zsh.initExtra = ''
|
||||
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
|
||||
'';
|
||||
programs.fish.interactiveShellInit = ''
|
||||
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
|
||||
'';
|
||||
wayland.windowManager.hyprland.extraConfig =
|
||||
builtins.readFile (./env/config/hypr/macchiato.conf) + "\n"
|
||||
+ builtins.readFile (./env/config/hypr/hyprland.conf) + "\n"
|
||||
+ builtins.readFile (./env/config/hypr/hyprland-vanguard.conf);
|
||||
|
||||
home.stateVersion = "22.11";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
imports = [
|
||||
./common.nix
|
||||
./locales/en_GB.nix
|
||||
./desktop/xfce-bspwm.nix
|
||||
./desktop/hyprland.nix
|
||||
];
|
||||
|
||||
networking.hostName = "Vanguard"; # Define your hostname.
|
||||
|
@ -28,7 +28,6 @@
|
|||
enable = true;
|
||||
user = "xenia";
|
||||
};
|
||||
# Fix Logitech MX Master buttons being inverted
|
||||
};
|
||||
|
||||
# Set up home manager for user
|
||||
|
|
Loading…
Reference in a new issue