added zotac mini config

This commit is contained in:
twoneis 2024-06-02 13:33:31 +02:00
parent 860212df55
commit a90f492a23
5 changed files with 94 additions and 1 deletions

View file

@ -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";
}

View file

@ -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;
}

View file

@ -0,0 +1,14 @@
{ ... }: {
minimal = false;
withAudio = true;
withBluetooth = true;
withNvidia = false;
withNiri = true;
withGnome = false;
withVM = false;
withContainers = false;
withGames = false;
}

View file

@ -96,7 +96,7 @@
{ command = ["waybar"]; } { command = ["waybar"]; }
{ command = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0"]; } { command = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0"]; }
{ command = ["brightnessctl" "s" "50%"]; } { command = ["brightnessctl" "s" "50%"]; }
{ command = ["swaybg" "-c" "000000"]; } { command = ["swaybg" "-c" "1f1d2e"]; }
]; ];
binds = { binds = {

View file

@ -31,5 +31,20 @@
home-manager.nixosModules.home-manager 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
];
};
}; };
} }