fixed hyprland being weird in vms

This commit is contained in:
Tyler Kelley 2024-01-23 23:32:20 -06:00
parent fbf222ba7f
commit 399366b141
3 changed files with 7 additions and 3 deletions

View File

@ -74,7 +74,8 @@ This file should be located at /etc/nixos/configuration.nix
- Clone this repo. - Clone this repo.
- Then go into repo folder (stay in this folder) - Then go into repo folder (stay in this folder)
- Change username, hostname, theme, and any other variables you may want under user information in flake.nix - Change username, hostname, theme, and any other variables you may want under user information in flake.nix
- Ensure you have selected the proper profile in the flake as well. I use amd-desktop. - If you change your hostname in the flake.nix know you need to update your defualt config, rebuild, and reboot.
- Ensure you have selected the proper profile in the flake as well.
- Generate your hardware.nix like so: - Generate your hardware.nix like so:
``` ```
@ -84,7 +85,7 @@ nixos-generate-config --show-hardware-config > hardware.nix
- Run this command: - Run this command:
``` ```
sudo nixos-rebuild switch --flake .#the-username-you-put-in-the-flake sudo nixos-rebuild switch --flake .
``` ```
Now when you want to rebuild the configuration you have access to an alias called flake-rebuild that will rebuild the flake based of the flakeDir variable you set in flake.nix! Now when you want to rebuild the configuration you have access to an alias called flake-rebuild that will rebuild the flake based of the flakeDir variable you set in flake.nix!

View File

@ -10,6 +10,9 @@
# exec Hyprland # exec Hyprland
#fi #fi
''; '';
initExtra = ''
neofetch
'';
sessionVariables = { sessionVariables = {
}; };

View File

@ -16,7 +16,7 @@ in with lib; {
extraConfig = let extraConfig = let
modifier = "SUPER"; modifier = "SUPER";
in concatStrings [ '' in concatStrings [ ''
monitor=,highres,auto,1 monitor=,preferred,auto,1
windowrule = float, ^(steam)$ windowrule = float, ^(steam)$
windowrule = center, ^(steam)$ windowrule = center, ^(steam)$
windowrule = size 1080 900, ^(steam)$ windowrule = size 1080 900, ^(steam)$