68 lines
1.5 KiB
Nix
68 lines
1.5 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";
|
||
};
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "23.11"; # Did you read the comment?
|
||
|
||
}
|