nixos-configuration/hosts/cadmium/configuration.nix
2025-12-02 16:32:57 +01:00

61 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../users/jalr
];
networking = {
hostName = "cadmium";
useDHCP = false;
firewall = {
allowedUDPPorts = [
#53
];
allowedTCPPorts = [
#53
];
};
extraHosts = ''
#10.10.10.10 example.com
'';
};
environment.systemPackages = with pkgs; [
gnome3.adwaita-icon-theme
openconnect
redir
tcpdump
];
environment.variables.EDITOR = "nvim";
programs.mtr.enable = true;
services.udisks2.enable = true;
# udevadm info --name /dev/foo --query all
services.udev.extraRules = ''
# STLink
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", GROUP="users", MODE="0660"
'';
jalr = {
bootloader = "systemd-boot";
bluetooth.enable = true;
uefi.enable = true;
gui = {
enable = true;
sway.enable = true;
};
workstation.enable = true;
libvirt.enable = true;
autologin.enable = true;
autologin.username = "jalr";
};
system.stateVersion = "25.11";
}