From f7527f57e7741a74056ceb7230647bf346ec0f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Wed, 13 Nov 2024 16:03:38 +0100 Subject: [PATCH] added nvidia and plasma-manage --- homeManagerModules/desktop/plasma.nix | 4 +++- hosts/wenar-nix/default.nix | 14 ++++++++++++++ hosts/wenar-nix/home.nix | 6 ++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/plasma.nix b/homeManagerModules/desktop/plasma.nix index 1e39cfa..baa54c0 100644 --- a/homeManagerModules/desktop/plasma.nix +++ b/homeManagerModules/desktop/plasma.nix @@ -19,7 +19,9 @@ in config = lib.mkIf cfg.enable { programs.plasma = { enable = true; - # TODO: config + workspace = { + theme = "breeze-dark"; + }; }; }; } diff --git a/hosts/wenar-nix/default.nix b/hosts/wenar-nix/default.nix index 2a1b108..9430957 100644 --- a/hosts/wenar-nix/default.nix +++ b/hosts/wenar-nix/default.nix @@ -1,6 +1,7 @@ { pkgs, inputs, + config, ... }: { @@ -15,6 +16,19 @@ boot.kernelPackages = pkgs.linuxPackages_latest; networking.hostName = "wenar-nix"; + hardware.graphics.enable = true; + + services.xserver.videoDrivers = [ "nvidia" ]; + + hardware.nvidia = { + modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + open = false; + nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.production; + }; + # My own modules configuration krop = { audio = { diff --git a/hosts/wenar-nix/home.nix b/hosts/wenar-nix/home.nix index 5b6238c..1252863 100644 --- a/hosts/wenar-nix/home.nix +++ b/hosts/wenar-nix/home.nix @@ -3,4 +3,10 @@ home.username = "krop"; home.homeDirectory = "/home/krop"; home.stateVersion = "24.05"; + + krop.hm = { + desktop.plasma = { + enable = true; + }; + }; }