dsiable hyprland
This commit is contained in:
@@ -18,13 +18,16 @@ in
|
|||||||
#
|
#
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor = [
|
monitor = if osConfig.networking.hostName == "kop-pc" then [
|
||||||
# PC
|
# PC
|
||||||
"HDMI-A-1,1920x1080@60,0x0,1"
|
"HDMI-A-1,1920x1080@60,0x0,1"
|
||||||
"DP-1,2560x1440@144,1920x0,1"
|
"DP-1,2560x1440@165,1920x0,1"
|
||||||
|
"Unknown-1,disable"
|
||||||
|
] else if osConfig.networking.hostName == "nix-laptop" then [
|
||||||
# laptop
|
# laptop
|
||||||
"eDP-1,3840x2160@60,0x0,2"
|
"eDP-1,3840x2160@60,0x0,2"
|
||||||
"DP-3,1920x1080@60,1920x0,1"
|
"DP-3,1920x1080@60,1920x0,1"
|
||||||
|
] else [
|
||||||
# Default
|
# Default
|
||||||
",preferred,auto,auto"
|
",preferred,auto,auto"
|
||||||
];
|
];
|
||||||
@@ -38,7 +41,7 @@ in
|
|||||||
# source = ~/.config/hypr/myColors.conf
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = "XCURSOR_SIZE,24";
|
env = [ "XCURSOR_SIZE,24" "NIXOS_OZONE_WL,1" ];
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input = {
|
input = {
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ in
|
|||||||
xkb.layout = config.mainUser.layout;
|
xkb.layout = config.mainUser.layout;
|
||||||
xkb.variant = config.mainUser.variant;
|
xkb.variant = config.mainUser.variant;
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager = mkIf (!config.services.xserver.displayManager.gdm.enable) {
|
displayManager = mkIf (!config.services.xserver.displayManager.sddm.enable) {
|
||||||
sddm.enable = true;
|
gdm.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# Hint electron apps to use wayland
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
WLR_NO_HARDWARE_CURSORS="1";
|
WLR_NO_HARDWARE_CURSORS="1";
|
||||||
#WLR_DRM_NO_ATOMIC="1";
|
#WLR_DRM_NO_ATOMIC="1";
|
||||||
#WLR_DRM_DEVICES = "/dev/dri/card0";
|
#WLR_DRM_DEVICES = "/dev/dri/card0";
|
||||||
|
|||||||
@@ -13,6 +13,23 @@
|
|||||||
mainUser.layout = "de";
|
mainUser.layout = "de";
|
||||||
mainUser.variant = "us";
|
mainUser.variant = "us";
|
||||||
age.identityPaths = [ /home/kopatz/.ssh/id_rsa ];
|
age.identityPaths = [ /home/kopatz/.ssh/id_rsa ];
|
||||||
|
services.xserver.displayManager.session = [
|
||||||
|
{
|
||||||
|
manage = "desktop";
|
||||||
|
name = "hyprland";
|
||||||
|
start = ''
|
||||||
|
${lib.getExe pkgs.hyprland} &
|
||||||
|
waitPID=$!
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
manage = "desktop";
|
||||||
|
name = "plasma5";
|
||||||
|
start = ''
|
||||||
|
env ${pkgs.plasma-workspace}/bin/startplasma-x11
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
../../home-manager/firefox
|
../../home-manager/firefox
|
||||||
../../home-manager/gitconfig.nix
|
../../home-manager/gitconfig.nix
|
||||||
../../home-manager/hyprland
|
../../home-manager/hyprland
|
||||||
../../home-manager/kde-path.nix
|
#../../home-manager/kde-path.nix
|
||||||
../../home-manager/kitty.nix
|
../../home-manager/kitty.nix
|
||||||
../../home-manager/lf.nix
|
../../home-manager/lf.nix
|
||||||
../../home-manager/nvim.nix
|
../../home-manager/nvim.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user