79 lines
1.7 KiB
Nix
79 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
disko,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
hostname = "Bellerophon";
|
|
in {
|
|
# System version
|
|
system.stateVersion = "23.11";
|
|
|
|
imports = [
|
|
# Import hardware configuration
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
inputs.nixos-hardware.nixosModules.common-hidpi
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
./hardware-configuration.nix
|
|
./duo-configuration.nix
|
|
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;
|
|
|
|
# Setup Audio
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
wireplumber.extraConfig."10-disable-camera" = {
|
|
"wireplumber.profiles" = {
|
|
main = {
|
|
"monitor.libcamera" = "disabled";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
# Setup bluetooth
|
|
hardware.bluetooth.enable = true;
|
|
|
|
# Add OpenGl support
|
|
hardware.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
mkl
|
|
intel-compute-runtime
|
|
vpl-gpu-rt
|
|
oneDNN
|
|
level-zero
|
|
intel-ocl
|
|
clinfo
|
|
level-zero
|
|
];
|
|
|
|
services.hardware.bolt.enable = true;
|
|
|
|
hardware.sensor.iio.enable = true;
|
|
}
|