nixos/desktop: moved and cleaned up environment variables

This commit is contained in:
Aly Raffauf 2024-05-12 22:00:09 -04:00
parent ac9f812f25
commit 3eda802b34
6 changed files with 6 additions and 10 deletions

View file

@ -21,6 +21,8 @@
}; };
config = lib.mkIf config.alyraffauf.desktop.enable { config = lib.mkIf config.alyraffauf.desktop.enable {
environment.sessionVariables.NIXOS_OZONE_WL = "1";
services = { services = {
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
gvfs.enable = true; # Mount, trash, etc. gvfs.enable = true; # Mount, trash, etc.

View file

@ -7,7 +7,7 @@
}: { }: {
options = { options = {
alyraffauf.desktop.hyprland.enable = alyraffauf.desktop.hyprland.enable =
lib.mkEnableOption "Enable hyprland wayland compositor."; lib.mkEnableOption "Hyprland wayland compositor.";
}; };
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable { config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
@ -30,7 +30,5 @@
enable = true; enable = true;
}; };
}; };
environment.sessionVariables.NIXOS_OZONE_WL = "1";
}; };
} }

View file

@ -32,7 +32,7 @@
accent = "mauve"; accent = "mauve";
}; };
font.name = "NotoSansNerdFont-Regular"; font.name = "NotoSans Nerd Font Regular";
font.package = pkgs.nerdfonts.override {fonts = ["Noto"];}; font.package = pkgs.nerdfonts.override {fonts = ["Noto"];};
cursorTheme.package = pkgs.catppuccin-cursors.frappeDark; cursorTheme.package = pkgs.catppuccin-cursors.frappeDark;

View file

@ -29,8 +29,6 @@
maliit-keyboard maliit-keyboard
]; ];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
# nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true; # nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
# nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto"; # nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto";

View file

@ -7,7 +7,7 @@
}: { }: {
options = { options = {
alyraffauf.desktop.sway.enable = alyraffauf.desktop.sway.enable =
lib.mkEnableOption "Enable sway wayland compositor."; lib.mkEnableOption "Sway wayland compositor.";
}; };
config = lib.mkIf config.alyraffauf.desktop.sway.enable { config = lib.mkIf config.alyraffauf.desktop.sway.enable {
@ -31,7 +31,5 @@
package = pkgs.swayfx; package = pkgs.swayfx;
}; };
}; };
environment.sessionVariables.NIXOS_OZONE_WL = "1";
}; };
} }