nixos-config/machines/laptop.nix

83 lines
1.7 KiB
Nix
Raw Normal View History

2025-01-24 00:50:13 +01:00
{ lib, ... }:
2024-07-18 13:48:49 +02:00
{
imports = [
2024-07-18 22:21:06 +02:00
# Import environment
../default.nix
2024-07-18 13:48:49 +02:00
];
config = {
# State version
system.stateVersion = "24.05";
# Machine hostname
networking.hostName = "20212060";
# Enabled modules
modules = {
base.desktop.enable = true;
2024-09-02 20:03:39 +02:00
bluetooth.enable = true;
2024-07-19 21:54:41 +02:00
power-saving.enable = false;
2025-01-28 10:42:20 +01:00
networkmanager.enable = true;
2025-04-16 13:00:40 +02:00
grdp.enable = true;
printing.enable = true;
2024-07-18 13:48:49 +02:00
};
2025-04-17 14:42:54 +02:00
# Pipewire roc sink
services.pipewire.extraConfig.pipewire."60-roc-sink" = {
context.modules = [
{
name = "libpipewire-module-roc-source";
args = {
fec.code = "rs8m";
remote.ip = "10.20.60.251";
remote.source.port = 10001;
remote.repair.port = 10002;
source.name = "Roc Sink";
source.props = {
node.name = "roc-sink";
};
};
}
];
};
2025-01-24 00:50:13 +01:00
# Hardware configuration
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
hardware.cpu.intel.updateMicrocode = true;
# Filesystems
fileSystems."/" = {
device = "/dev/disk/by-uuid/3b91eaeb-ea95-4bea-8dc1-f55af7502d23";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/46BF-DE2C";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
2025-02-23 14:48:32 +01:00
# Swapfile
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
2024-07-18 13:48:49 +02:00
};
2024-07-19 14:00:55 +02:00
}