diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2023-10-14 10:53:18 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2023-10-14 10:53:18 -0400 |
commit | 5897af1a6c355f77c78f342d1d6f070670d14a4c (patch) | |
tree | ceacea8620f7a4f5b684837f8019244933286864 /systems/jonbox | |
parent | 972bff32235bbd414cbbaba5ac3eeb7979c2bad6 (diff) | |
download | nix-config-5897af1a6c355f77c78f342d1d6f070670d14a4c.tar.gz nix-config-5897af1a6c355f77c78f342d1d6f070670d14a4c.tar.bz2 nix-config-5897af1a6c355f77c78f342d1d6f070670d14a4c.zip |
remove redundant system folder. add useful programs.
Diffstat (limited to 'systems/jonbox')
-rw-r--r-- | systems/jonbox/default.nix | 80 | ||||
-rw-r--r-- | systems/jonbox/filesystem.nix | 33 |
2 files changed, 0 insertions, 113 deletions
diff --git a/systems/jonbox/default.nix b/systems/jonbox/default.nix deleted file mode 100644 index 836302e..0000000 --- a/systems/jonbox/default.nix +++ /dev/null @@ -1,80 +0,0 @@ -{ inputs, config, lib, modulesPath, pkgs, ... }: - -{ - imports = - [ # Include the results of the hardware scan. - (modulesPath + "/installer/scan/not-detected.nix") - ./filesystem.nix - ../bluetooth.nix - ]; - - #Unfree-packages. - nixpkgs.config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkg) [ - "nvidia-x11" - "nvidia-settings" - "nvidia-persistenced" - ]; - - #Bootloader - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - 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" ]; - - displayManager = { - gdm.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; - powerManagement.finegrained = false; - open = true; - nvidiaSettings = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; - - #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; -} diff --git a/systems/jonbox/filesystem.nix b/systems/jonbox/filesystem.nix deleted file mode 100644 index 4faa688..0000000 --- a/systems/jonbox/filesystem.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, lib, pkgs, modulesPath, ... }: - -{ - fileSystems."/" = - { device = "/dev/disk/by-uuid/83cafaff-8be3-477f-b13c-c47dafdf969d"; - fsType = "btrfs"; - options = [ "subvol=@" ]; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/40EA-5550"; - fsType = "vfat"; - }; - - fileSystems."/mnt/jonshare" = { - device = "homenas:/var/data/jon"; - fsType = "nfs"; - }; - - fileSystems."/mnt/plexshare" = { - device = "homenas:/var/data/plex"; - fsType = "nfs"; - }; - - fileSystems."/mnt/share" = { - device = "homenas:/var/data/shared"; - fsType = "nfs"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/acfc7ea5-0787-4e05-bcf1-20b7adb0f35c"; } - ]; -} |