summaryrefslogtreecommitdiffstats
path: root/systems/jonbox
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2023-09-27 20:04:34 -0400
committerJon Santmyer <jon@jonsantmyer.com>2023-09-27 20:04:34 -0400
commitbcb39f3a7016f5f15696390210721dc7608b9617 (patch)
tree73ba0e9dc17fc51c49960ff28b04861d284914c8 /systems/jonbox
parentfb8d2e44a70a2e585d9da9f0a1cfe1d2c9a7b902 (diff)
downloadnix-config-bcb39f3a7016f5f15696390210721dc7608b9617.tar.gz
nix-config-bcb39f3a7016f5f15696390210721dc7608b9617.tar.bz2
nix-config-bcb39f3a7016f5f15696390210721dc7608b9617.zip
awesome: redo topbar.
reworking systems org
Diffstat (limited to 'systems/jonbox')
-rw-r--r--systems/jonbox/default.nix38
1 files changed, 35 insertions, 3 deletions
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;