51 lines
975 B
Nix
51 lines
975 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disko.nix
|
|
../../users/jalr
|
|
./services
|
|
];
|
|
|
|
networking = {
|
|
hostName = "copper";
|
|
extraHosts = lib.concatStringsSep "\n" (
|
|
lib.attrsets.mapAttrsToList
|
|
(addr: hosts:
|
|
lib.concatStringsSep " " ([ addr ] ++ hosts)
|
|
)
|
|
{
|
|
#"192.0.2.1" = ["example.com"];
|
|
}
|
|
);
|
|
firewall.interfaces.virbr0.allowedTCPPorts = [ 53 ];
|
|
firewall.interfaces.virbr0.allowedUDPPorts = [ 53 67 ];
|
|
};
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 60;
|
|
priority = 1;
|
|
};
|
|
|
|
jalr = {
|
|
bootloader = "lanzaboote";
|
|
bluetooth.enable = true;
|
|
uefi.enable = true;
|
|
gui.enable = true;
|
|
workstation.enable = true;
|
|
sdr.enable = true;
|
|
libvirt.enable = true;
|
|
autologin = {
|
|
enable = true;
|
|
username = "jalr";
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
services.flatpak.enable = true;
|
|
}
|
|
|