diff options
| -rw-r--r-- | home-manager/home.nix | 2 | ||||
| -rw-r--r-- | machines/khad/configuration.nix | 22 | ||||
| -rw-r--r-- | modules/home-manager/shell.nix | 14 | ||||
| -rw-r--r-- | modules/nixos/system-packages.nix | 26 |
4 files changed, 55 insertions, 9 deletions
diff --git a/home-manager/home.nix b/home-manager/home.nix index fcc29fd..af68f89 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -66,6 +66,8 @@ starship kitty exa + okteta + xxd zoxide broot procs diff --git a/machines/khad/configuration.nix b/machines/khad/configuration.nix index 7a754cf..e2d011d 100644 --- a/machines/khad/configuration.nix +++ b/machines/khad/configuration.nix @@ -33,7 +33,27 @@ }; services.xserver.videoDrivers = [ "nvidia" ]; - hardware.opengl.driSupport32Bit = true; + hardware.opengl = { + enable = true; + # if hardware.opengl.driSupport is enabled, mesa is installed and provides Vulkan of supported hardware. + driSupport = true; + # needed by nvidia-docker + driSupport32Bit = true; + }; + hardware.nvidia = { + # Optionally, you may need to select the appropriate driver version for your specific GPU. + # packge = config.boot.kernelPackages.nvidiaPackages.stable; + + # Modesetting is needed for most Wayland compositors + modesetting.enable = true; + # Use the open source version of the kernel module + # Only available on driver 515.53.04+ + open = false; + + # powerManagement.enable = true; + }; + # virtualization.docker.enableNvidia = true; # for nvidia-docker + environment.shellInit = ''export NIXPATH="/nix/var/nix/profiles/per-user/$USER/channels:nixos-config=/etc/nixos/machines/khad/configuration.nix"''; # Set your time zone. diff --git a/modules/home-manager/shell.nix b/modules/home-manager/shell.nix index 5568272..1fcc03f 100644 --- a/modules/home-manager/shell.nix +++ b/modules/home-manager/shell.nix @@ -1,12 +1,14 @@ {nushell-scripts, ... }: { programs.nushell = { extraConfig = '' - source ${nushell-scripts}/custom-completions/pass/pass-completions.nu * - source ${nushell-scripts}/custom-completions/nix/nix-completions.nu * - source ${nushell-scripts}/custom-completions/man/man-completions.nu * - source ${nushell-scripts}/custom-completions/cargo/cargo-completions.nu * - source ${nushell-scripts}/custom-completions/make/make-completions.nu * - source ${nushell-scripts}/custom-completions/git/git-completions.nu * + use ~/.cache/starship/init.nu + + use ${nushell-scripts}/custom-completions/pass/pass-completions.nu * + use ${nushell-scripts}/custom-completions/nix/nix-completions.nu * + use ${nushell-scripts}/custom-completions/man/man-completions.nu * + use ${nushell-scripts}/custom-completions/cargo/cargo-completions.nu * + use ${nushell-scripts}/custom-completions/make/make-completions.nu * + use ${nushell-scripts}/custom-completions/git/git-completions.nu * ''; }; } diff --git a/modules/nixos/system-packages.nix b/modules/nixos/system-packages.nix index 6e991b7..dc73fb8 100644 --- a/modules/nixos/system-packages.nix +++ b/modules/nixos/system-packages.nix @@ -1,5 +1,4 @@ -{ pkgs, ...}: -{ +{ pkgs, ...}: { programs.partition-manager.enable = true; environment.systemPackages = with pkgs; [ #For root @@ -11,5 +10,28 @@ git wl-clipboard pciutils + # For gaming + # r2modman + #For hyprland + waybar + #For sway + alacritty # gpu accelerated terminal + dbus-sway-environment + configure-gtk + wayland + waybar + xdg-utils # for opening default programs when clicking links + glib # gsettings + dracula-theme # gtk theme + gnome3.adwaita-icon-theme # default gnome cursors + swaylock + swayidle + grim # screenshot functionality + slurp # screenshot functionality + bemenu # wayland clone of dmenu + mako # notification system developed by swaywm maintainer + wdisplays # tool to configure displays + wofi + (writeShellScriptBin "rofi" "exec -a $0 ${wofi}/bin/wofi $@") #Lets qutebrowser select passwords ]; } |
