mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 12:20:04 +00:00
43 lines
930 B
Nix
43 lines
930 B
Nix
{pkgs, ...}: {
|
|
imports = [
|
|
./hardware.nix
|
|
];
|
|
|
|
puzzlevision = {
|
|
users.cyn = {
|
|
enable = true;
|
|
password = "cynical"; # For testing only, replace with sops secret before production use
|
|
extraGroups = ["wheel"];
|
|
};
|
|
|
|
users.jo = {
|
|
enable = true;
|
|
password = "jo"; # For testing only, replace with sops secret before production use
|
|
extraGroups = ["wheel"];
|
|
};
|
|
|
|
archetypes.workstation.enable = true;
|
|
};
|
|
|
|
# Configure 8GB SWAP partition
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 8 * 1024;
|
|
}
|
|
];
|
|
|
|
boot = {
|
|
# Configure additional kernel modules.
|
|
extraModulePackages = [
|
|
pkgs.linuxPackages_latest.rtl8821ce # Use custom network-card driver.
|
|
];
|
|
|
|
blacklistedKernelModules = [
|
|
"rtw88_8821ce" # Block the default network-card driver.
|
|
];
|
|
};
|
|
|
|
networking.hostName = "puzzlevision";
|
|
system.stateVersion = "25.05";
|
|
}
|