diff --git a/env/wayland/fonts.nix b/env/common/fonts.nix similarity index 100% rename from env/wayland/fonts.nix rename to env/common/fonts.nix diff --git a/env/wayland/default.nix b/env/wayland/default.nix index e86c1b3..154ca4e 100644 --- a/env/wayland/default.nix +++ b/env/wayland/default.nix @@ -1,11 +1,8 @@ -{ - pkgs, - inputs, - ... -}: { - imports = [./fonts.nix]; +{pkgs, ...}: { + imports = [../common/fonts.nix]; environment.etc."greetd/environments".text = '' + bspwm Hyprland ''; diff --git a/env/x11/default.nix b/env/x11/default.nix new file mode 100644 index 0000000..7534e71 --- /dev/null +++ b/env/x11/default.nix @@ -0,0 +1,19 @@ +{pkgs, ...}: { + environment.etc."greetd/environments".text = '' + bspwm + Hyprland + ''; + + services = { + greetd = { + enable = true; + settings = rec { + initial_session = { + command = "bspwm"; + user = "zack"; + }; + default_session = initial_session; + }; + }; + }; +} diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 9ed3992..b93a04a 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -10,7 +10,6 @@ }: { imports = [ # Include the results of the hardware scan. - ../../env/wayland ({ options, lib, @@ -31,6 +30,21 @@ }; }; + # specialisation = { + # bspwm.configuration = { + # imports = [ + # ../../env/x11 + # ]; + # environment.etc."specialisation".text = "bspwm"; + # }; + # hyprland.configuration = { + # imports = [ + # ../../env/wayland + # ]; + # environment.etc."specialisation".text = "hyprland"; + # }; + # }; + nix.gc = { automatic = true; dates = "weekly"; diff --git a/hosts/earth/configuration.nix b/hosts/earth/configuration.nix index 932d089..e9b956d 100644 --- a/hosts/earth/configuration.nix +++ b/hosts/earth/configuration.nix @@ -113,20 +113,20 @@ package = config.boot.kernelPackages.nvidiaPackages.beta; }; - specialisation = { - nvidiaProduction.configuration = { - hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production; - environment.etc."specialisation".text = "nvidiaProduction"; - }; - nvidiaStable.configuration = { - hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; - environment.etc."specialisation".text = "nvidiaStable"; - }; - nvidiaVulkanBeta.configuration = { - hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta; - environment.etc."specialisation".text = "nvidiaVulkanBeta"; - }; - }; + # specialisation = { + # nvidiaProduction.configuration = { + # hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production; + # environment.etc."specialisation".text = "nvidiaProduction"; + # }; + # nvidiaStable.configuration = { + # hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; + # environment.etc."specialisation".text = "nvidiaStable"; + # }; + # nvidiaVulkanBeta.configuration = { + # hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta; + # environment.etc."specialisation".text = "nvidiaVulkanBeta"; + # }; + # }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.zack = { @@ -140,8 +140,6 @@ rio telegram-desktop kitty - mailspring - # thunderbird ]; }; diff --git a/modules/rice/hyprland/config.nix b/modules/rice/hyprland/config.nix index d1a514a..f1964b7 100644 --- a/modules/rice/hyprland/config.nix +++ b/modules/rice/hyprland/config.nix @@ -10,7 +10,7 @@ general = { # gaps gaps_in = 6; - gaps_out = 11; + gaps_out = 12; # border thiccness border_size = 4; @@ -32,20 +32,20 @@ decoration = { # fancy corners - rounding = 12; + rounding = 10; # blur blur = { enabled = true; - size = 3; - passes = 6; + size = 2; + passes = 5; ignore_opacity = false; new_optimizations = 1; - contrast = 0.7; - brightness = 0.8; + contrast = 0.9; + brightness = 0.9; }; # shadow config - drop_shadow = "no"; + drop_shadow = "yes"; shadow_range = 20; shadow_render_power = 5; "col.shadow" = "rgba(292c3cee)"; @@ -59,10 +59,6 @@ vfr = true; - # window swallowing - enable_swallow = true; # hide windows that spawn other windows - swallow_regex = "^(foot)$"; - # dpms mouse_move_enables_dpms = true; # enable dpms on mouse/touchpad action key_press_enables_dpms = true; # enable dpms on keyboard action