From e3f5b5bcd2472a2244395c0ceb3c776df8633e63 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 23 Sep 2023 20:40:19 +0900 Subject: [PATCH] test --- nixos/common/desktops/gnome/default.nix | 3 +-- nixos/common/desktops/hyprland/default.nix | 2 +- nixos/hosts/nixos-vm-02/default.nix | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/nixos/common/desktops/gnome/default.nix b/nixos/common/desktops/gnome/default.nix index 8f3f1191..166c42db 100644 --- a/nixos/common/desktops/gnome/default.nix +++ b/nixos/common/desktops/gnome/default.nix @@ -16,8 +16,7 @@ layout = "us"; xkbVariant = ""; autorun = true; - # When you play games, change this to nvidia - videoDrivers = [ gpu ]; + videoDrivers = [ ] ++ lib.optional (builtins.isString gpu) gpu; }; ##### disable nvidia, very nice battery life. diff --git a/nixos/common/desktops/hyprland/default.nix b/nixos/common/desktops/hyprland/default.nix index 3a4fff0d..02e8454e 100644 --- a/nixos/common/desktops/hyprland/default.nix +++ b/nixos/common/desktops/hyprland/default.nix @@ -7,7 +7,7 @@ # ]; # }; - services.xserver.videoDrivers = [ gpu ]; + services.xserver.videoDrivers = [ ] ++ lib.optional (builtins.isString gpu) gpu; # tuigreet services.greetd = { diff --git a/nixos/hosts/nixos-vm-02/default.nix b/nixos/hosts/nixos-vm-02/default.nix index 892209a5..0455cba4 100644 --- a/nixos/hosts/nixos-vm-02/default.nix +++ b/nixos/hosts/nixos-vm-02/default.nix @@ -19,4 +19,4 @@ networking.hostName = "nixos-vm-02"; networking.firewall.allowedTCPPorts = [ 22 ]; -} +} \ No newline at end of file