diff --git a/devices/pleniscenta/default.nix b/devices/pleniscenta/default.nix new file mode 100644 index 0000000..5d441df --- /dev/null +++ b/devices/pleniscenta/default.nix @@ -0,0 +1,29 @@ +{ ... }: { + imports = [ + ./hardware-config.nix + ./options.nix + ]; + + networking.hostName = "akarso"; + + boot.loader = { + systemd-boot = { + enable = true; + }; + efi.canTouchEfiVariables = true; + }; + + services.zfs.autoScrub.enable = true; + services.zfs.trim.enable = true; + + hardware.opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + + services.thermald.enable = true; + + system.stateVersion = "23.05"; + +} diff --git a/devices/pleniscenta/hardware-config.nix b/devices/pleniscenta/hardware-config.nix new file mode 100644 index 0000000..41a9990 --- /dev/null +++ b/devices/pleniscenta/hardware-config.nix @@ -0,0 +1,35 @@ +{ config, lib, ... }: { + boot = { + initrd = { + availableKernelModules = [ "ahci" "xhci_pci" "ums_realtek" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; + kernelModules = [ ]; + }; + kernelModules = [ "kvm-intel" ]; + extraModulePackages = [ ]; + supportedFilesystems = [ "zfs" ]; + }; + + fileSystems = { + "/boot" = { + device = "/dev/disk/by-uuid/4A39-D0DF"; + fsType = "vfat"; + }; + "/" = { + device = "zpool/root"; + fsType = "zfs"; + }; + "/nix" = { + device = "zpool/nix"; + fsType = "zfs"; + }; + "/persist" = { + device = "zpool/persist"; + fsType = "zfs"; + }; + }; + + networking.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/devices/pleniscenta/options.nix b/devices/pleniscenta/options.nix new file mode 100644 index 0000000..719044f --- /dev/null +++ b/devices/pleniscenta/options.nix @@ -0,0 +1,14 @@ +{ ... }: { + minimal = false; + + withAudio = true; + withBluetooth = true; + withNvidia = false; + + withNiri = true; + withGnome = false; + + withVM = false; + withContainers = false; + withGames = false; +} diff --git a/modules/niri/default.nix b/modules/niri/default.nix index 91a694c..a69379c 100644 --- a/modules/niri/default.nix +++ b/modules/niri/default.nix @@ -96,7 +96,7 @@ { command = ["waybar"]; } { command = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0"]; } { command = ["brightnessctl" "s" "50%"]; } - { command = ["swaybg" "-c" "000000"]; } + { command = ["swaybg" "-c" "1f1d2e"]; } ]; binds = { diff --git a/outputs.nix b/outputs.nix index 821e4d5..e0aa32a 100644 --- a/outputs.nix +++ b/outputs.nix @@ -31,5 +31,20 @@ home-manager.nixosModules.home-manager ]; }; + + # Zotac Mini + pleniscenta = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { + inherit inputs; + }; + modules = [ + ./devices/pleniscenta + ./modules + ./options.nix + niri.nixosModules.niri + home-manager.nixosModules.home-manager + ]; + }; }; }