From bcb39f3a7016f5f15696390210721dc7608b9617 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 27 Sep 2023 20:04:34 -0400 Subject: awesome: redo topbar. reworking systems org --- systems/jonbox/default.nix | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) (limited to 'systems/jonbox') diff --git a/systems/jonbox/default.nix b/systems/jonbox/default.nix index 16cf6a2..c894497 100644 --- a/systems/jonbox/default.nix +++ b/systems/jonbox/default.nix @@ -8,6 +8,7 @@ ../bluetooth.nix ]; + #Unfree-packages. nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "nvidia-x11" @@ -15,6 +16,7 @@ "nvidia-persistenced" ]; + #Bootloader boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -23,14 +25,38 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + #SSD-optimization + services.fstrim.enable = true; + + #OpenGL hardware.opengl = { enable = true; driSupport = true; driSupport32Bit = true; }; + + #X11 Server + services.xserver = { + enable = true; + layout = "us"; + xkbVariant = ""; + videoDrivers = [ "nvidia" ]; - services.xserver.videoDrivers = [ "nvidia" ]; + displayManager = { + sddm.enable = true; + defaultSession = "none+awesome"; + }; + windowManager.awesome = { + enable = true; + luaModules = with pkgs.luaPackages; [ + luarocks + luadbi-mysql + ]; + }; + }; + + #NVidia hardware.nvidia = { modesetting.enable = true; powerManagement.enable = false; @@ -40,8 +66,14 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; }; - services.fstrim.enable = true; - nix.settings.auto-optimize-store = true; + #Virtualization + virtualisation.libvirtd.enable = true; + programs.dconf.enable = true; + environment.systemPackages = with pkgs; [ + virt-manager + libguestfs + guestfs-tools + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -- cgit v1.2.1