From 399366b14191537714ae79de3095c506188653cd Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Tue, 23 Jan 2024 23:32:20 -0600 Subject: [PATCH] fixed hyprland being weird in vms --- README.md | 5 +++-- config/home/bash.nix | 3 +++ config/home/hyprland.nix | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1d8298a..582aa3f 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,8 @@ This file should be located at /etc/nixos/configuration.nix - Clone this repo. - 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 -- 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: ``` @@ -84,7 +85,7 @@ nixos-generate-config --show-hardware-config > hardware.nix - 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! diff --git a/config/home/bash.nix b/config/home/bash.nix index ea3e160..2ddf2b8 100644 --- a/config/home/bash.nix +++ b/config/home/bash.nix @@ -10,6 +10,9 @@ # exec Hyprland #fi ''; + initExtra = '' + neofetch + ''; sessionVariables = { }; diff --git a/config/home/hyprland.nix b/config/home/hyprland.nix index 1d87426..15fae4d 100644 --- a/config/home/hyprland.nix +++ b/config/home/hyprland.nix @@ -16,7 +16,7 @@ in with lib; { extraConfig = let modifier = "SUPER"; in concatStrings [ '' - monitor=,highres,auto,1 + monitor=,preferred,auto,1 windowrule = float, ^(steam)$ windowrule = center, ^(steam)$ windowrule = size 1080 900, ^(steam)$