Add Blackbird host configuration and disk setup
This commit is contained in:
76
hosts/Blackbird/default.nix
Normal file
76
hosts/Blackbird/default.nix
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user