sept rice

This commit is contained in:
iofq 2025-08-03 10:38:37 -05:00
parent 89ab499605
commit 66ba28aaf3
12 changed files with 572 additions and 293 deletions

View file

@ -2,10 +2,12 @@
pkgs,
attrs,
...
}: let
}:
let
# Horrid workaround for https://github.com/nix-community/home-manager/issues/1011
homeManagerSessionVars = "/etc/profiles/per-user/${attrs.username}/etc/profile.d/hm-session-vars.sh";
in {
in
{
imports = [
./hardware-configuration.nix
./backups.nix
@ -24,21 +26,24 @@ in {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
kernelPackages = pkgs.linuxPackages_latest;
blacklistedKernelModules = ["bluetooth"];
blacklistedKernelModules = [ "bluetooth" ];
};
# Networking
networking = {
hostId = "1185c58e";
nameservers = ["9.9.9.9" "1.1.1.1"];
nameservers = [
"9.9.9.9"
"1.1.1.1"
];
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
firewall = {
enable = true;
allowedTCPPorts = [11111];
allowedUDPPorts = [];
trustedInterfaces = ["tailscale0"];
allowedTCPPorts = [ 11111 ];
allowedUDPPorts = [ ];
trustedInterfaces = [ "tailscale0" ];
logRefusedConnections = true;
};
};
@ -50,11 +55,11 @@ in {
};
};
security.pam.services.swaylock = {};
security.pam.services.swaylock = { };
xdg.portal = {
enable = true;
xdgOpenUsePortal = false;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
programs = {
light.enable = true;
@ -64,13 +69,16 @@ in {
};
steam.enable = true;
adb.enable = true;
fish.enable = true; #enable vendor completions
fish.enable = true; # enable vendor completions
};
# workaround for wait-online killing nixos build
systemd.services.NetworkManager-wait-online = {
serviceConfig = {
ExecStart = ["" "${pkgs.networkmanager}/bin/nm-online -q"];
ExecStart = [
""
"${pkgs.networkmanager}/bin/nm-online -q"
];
};
};
@ -128,7 +136,7 @@ in {
enable = true;
keyboards = {
default = {
ids = ["*"];
ids = [ "*" ];
settings = {
main = {
pause = "timeout(esc, 150, space)";
@ -145,6 +153,7 @@ in {
trezord.enable = true;
udisks2.enable = true; # kindle
ollama.enable = true;
};
fonts = {
# Set a sane system-wide default font
@ -152,7 +161,7 @@ in {
nerd-fonts.ubuntu-mono
spleen
];
fontconfig.defaultFonts.monospace = ["UbuntuMono"];
fontconfig.defaultFonts.monospace = [ "UbuntuMono" ];
};
system.stateVersion = "22.11";
}