xin/hosts/clunk/default.nix
Aaron Bieber 354d3b08d6
box: disable loki
- clunk: move libinput
- common.sh: fix handle_update_check_fail
2024-05-20 08:21:34 -06:00

96 lines
1.8 KiB
Nix

{ 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"
];
};
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
direwolf
polybar
python3
python3Packages.nomadnet
python3Packages.rns
rofi
rtl-sdr
tncattach
# no GLSL ES 3.10
# (callPackage ../../pkgs/zutty.nix { })
];
services = {
fwupd = {
enable = true;
};
libinput.enable = true;
xserver = {
enable = true;
displayManager.lightdm.enable = true;
videoDrivers = [ "intel" ];
deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"
'';
windowManager.xmonad = {
enable = true;
extraPackages = haskellPackages: with haskellPackages; [ xmonad-contrib hostname ];
config = builtins.readFile ./xmonad.hs;
};
};
};
users = {
users = {
root = { openssh.authorizedKeys.keys = pubKeys; };
qbit = {
openssh.authorizedKeys.keys = pubKeys;
extraGroups = [ "dialout" "libvirtd" "plugdev" ];
};
};
};
system = {
autoUpgrade.allowReboot = false;
autoUpgrade.enable = false;
stateVersion = "22.11";
};
}