Add Blackbird host configuration and disk setup

This commit is contained in:
panotaka
2023-12-11 10:36:20 -04:00
parent c57a424acf
commit 548eccc974
3 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
{ config, pkgs, inputs, lib, ... }:
let
hostname = "Blackbird";
in
{
# System version
system.stateVersion = "23.11";
imports = [
# Import hardware configuration
inputs.nixos-hardware.nixosModules.gpd-pocket-3
inputs.disko.nixosModules.disko
./disko.nix
# Import system configuration
../../modules/system.nix
../../modules/harden.nix
../../modules/kde.nix
];
# Set networking
hardware.enableRedistributableFirmware = true;
networking.hostName = hostname;
networking.networkmanager.enable = true;
networking.useDHCP = lib.mkDefault true;
# Bootloader configuration
boot = {
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
initrd = {
kernelModules = [ ];
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
};
loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
};
};
};
# Setup Audio
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Setup bluetooth
hardware.bluetooth.enable = true;
}