Files
nixos-flake/hosts/waku/default.nix
T
2026-08-15 20:47:19 +09:00

132 lines
2.6 KiB
Nix

{ config, lib, pkgs, inputs, ... }:
{
imports = [
./hardware-configuration.nix
../../profiles/base.nix
../../profiles/desktop.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.tmp.cleanOnBoot = true;
boot.binfmt.preferStaticEmulators = true;
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
networking.networkmanager.wifi.macAddress = "preserve";
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
};
libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemu = {
swtpm.enable = true;
};
};
spiceUSBRedirection.enable = true;
};
services.ollama = {
enable = true;
package = pkgs.unstable.ollama-rocm;
};
services.open-webui = {
enable = true;
port = 11111;
package = pkgs.unstable.open-webui;
};
services.fprintd.enable = true;
services.xserver.windowManager.i3.enable = true;
services.xserver.resolutions = [ {x = 2560; y = 1600; } ];
services.xserver.dpi = lib.mkForce 108;
services.flatpak.enable = true;
xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-xapp
kdePackages.xdg-desktop-portal-kde
];
programs.steam = {
enable = true;
fontPackages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
];
};
programs.i3lock = {
enable = true;
u2fSupport = false;
};
programs.wireshark = {
package = pkgs.wireshark;
enable = true;
dumpcap.enable = true;
usbmon.enable = true;
};
programs.virt-manager.enable = true;
environment.systemPackages = (with pkgs; [
amdgpu_top
arduino-ide
kdePackages.xdg-desktop-portal-kde
my-ricing-assets
opencode
rocmPackages.amdsmi
rocmPackages.rocm-smi
saleae-logic-2
sqlite
sqlite-utils
tmux
unixodbc
unixodbcDrivers.sqlite
vim
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
xdg-desktop-portal-xapp
xournalpp
]);
environment.variables = {
MY_RICING_ASSETS_PATH = "${pkgs.my-ricing-assets}/";
};
hardware.opentabletdriver.enable = true;
nixpkgs.config.allowUnfree = true;
networking.hostName = "wakugumi-hitoroku";
networking.firewall.enable = true;
networking.firewall.allowedTCPPortRanges = [
{
from = 8000;
to = 9000;
}
];
networking.firewall.allowedUDPPortRanges = [
{
from = 4000;
to = 5000;
}
];
system.stateVersion = "25.11";
}