xin/hosts/clunk/default.nix

94 lines
1.8 KiB
Nix
Raw Normal View History

2024-01-18 12:45:27 -07:00
{ pkgs
, ...
}:
let
pubKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7v+/xS8832iMqJHCWsxUZ8zYoMWoZhjj++e26g1fLT europa"
];
in
{
_module.args.isUnstable = true;
imports = [
./hardware-configuration.nix
];
hardware.rtl-sdr.enable = true;
boot = {
loader.grub = {
enable = true;
devices = [
"/dev/disk/by-id/wwn-0x5001b448be78d64a"
];
2024-01-18 12:45:27 -07:00
};
kernelPackages = pkgs.linuxPackages_latest;
};
nixpkgs.config.allowUnsupportedSystem = true;
networking = {
hostName = "clunk";
networkmanager.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
checkReversePath = "loose";
};
};
environment.systemPackages = with pkgs; [
alacritty
2024-01-18 12:45:27 -07:00
direwolf
polybar
2024-01-25 08:37:33 -07:00
python3
python3Packages.nomadnet
python3Packages.rns
rofi
rtl-sdr
2024-01-30 12:47:55 -07:00
tncattach
2024-01-19 08:38:34 -07:00
# no GLSL ES 3.10
# (callPackage ../../pkgs/zutty.nix { })
2024-01-18 12:45:27 -07:00
];
services = {
fwupd = {
enable = true;
};
xserver = {
enable = true;
displayManager.lightdm.enable = true;
videoDrivers = [ "intel" ];
deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"
'';
libinput.enable = true;
windowManager.xmonad = {
enable = true;
extraPackages = haskellPackages: with haskellPackages; [ xmonad-contrib hostname ];
2024-01-19 08:38:34 -07:00
config = builtins.readFile ./xmonad.hs;
};
};
2024-01-18 12:45:27 -07:00
};
users = {
users = {
root = { openssh.authorizedKeys.keys = pubKeys; };
qbit = {
openssh.authorizedKeys.keys = pubKeys;
extraGroups = [ "dialout" "libvirtd" "plugdev" ];
};
};
};
2024-02-09 20:02:36 -07:00
system = {
autoUpgrade.allowReboot = false;
autoUpgrade.enable = false;
stateVersion = "22.11";
};
2024-01-18 12:45:27 -07:00
}