Files
nixos-config/hosts/Blackbird/default.nix

62 lines
1.3 KiB
Nix

{
lib,
inputs,
...
}: 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/containers.nix
../../modules/virtualization.nix
../../modules/harden.nix
../../modules/gnome.nix
];
# Set networking
hardware.enableRedistributableFirmware = true;
networking.hostName = hostname;
networking.networkmanager.enable = true;
networking.useDHCP = lib.mkDefault true;
# Bootloader configuration
boot = {
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;
# Setup auto-rotaion
hardware.sensor.iio.enable = true;
services.udev.extraHwdb = ''
sensor:modalias:*
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 1, 0, 0
'';
}