From 97e1721ce179e542049f6d84e655215ff632f29f Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sat, 10 Jun 2023 10:59:31 +0200 Subject: [PATCH] simple config --- home-manager/home.nix | 8 +++++++- nixos/configuration.nix | 4 ++-- nixos/i3.nix | 15 ++++++++++++++- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/home-manager/home.nix b/home-manager/home.nix index 1f1f24d..f8e8f71 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -43,11 +43,17 @@ # Add stuff for your user as you see fit: programs.neovim.enable = true; home.packages = with pkgs; [ - steam librewolf kitty + teams + p3x-onenote + spotify + zathura + playerctl ]; + services.playerctld.enable = true; + # Enable home-manager and git programs.home-manager.enable = true; programs.git.enable = true; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index fd5c963..c738136 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -6,7 +6,7 @@ # You can import other NixOS modules here imports = [ # If you want to use modules from other flakes (such as nixos-hardware): - # inputs.hardware.nixosModules.common-cpu-amd + inputs.hardware.nixosModules.common-cpu-amd # inputs.hardware.nixosModules.common-gpu-nvidia # You can also split up your configuration and import pieces of it here: @@ -101,7 +101,7 @@ alsa.support32Bit = true; pulse.enable = true; # If you want to use JACK applications, uncomment this - #jack.enable = true; + # jack.enable = true; # use the example session manager (no others are packaged yet so this is enabled by default, # no need to redefine it in your config for now) diff --git a/nixos/i3.nix b/nixos/i3.nix index 8c5095a..cebf05b 100644 --- a/nixos/i3.nix +++ b/nixos/i3.nix @@ -6,7 +6,7 @@ services.xserver = { xrandrHeads = [ "HDMI-1 --auto --left-of DP-1" - "DP-1 --auto --primary HDMI-1" + "DP-1 --auto --primary" ]; enable = true; @@ -16,6 +16,9 @@ }; displayManager.defaultSession = "none+i3"; + displayManager.lightdm.enable = true; + displayManager.autoLogin.enable = true; + displayManager.autoLogin.user = "mans"; windowManager.i3 = { enable = true; @@ -30,4 +33,14 @@ layout = "us"; xkbVariant = ""; }; + + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.opengl.enable = true; + + # Optionally, you may need to select the appropriate driver version for your specific GPU. + hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; + + # nvidia-drm.modeset=1 is required for some wayland compositors, e.g. sway + hardware.nvidia.modesetting.enable = true; } +