Files
nix/modules/hosts/box.nix
T
2026-10-25 10:08:15 -05:00

43 lines
1.0 KiB
Nix

{ den, ... }: {
den.hosts.x86_64-linux.box = {
cloudflared.uuid = "d4c4a385-05c7-4dff-b6f1-9bd02693a80a";
};
den.aspects.box = {
includes = with den.aspects; [
den.default
server
];
nixos = { pkgs, ... }: {
imports = [ ./_hw/box.nix ];
environment.systemPackages = [ pkgs.python3 ];
users.users.levi = {
isNormalUser = true;
description = "levi";
extraGroups = [];
hashedPasswordFile = "/home/bug/users/levi.passwd";
};
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = 1;
"net.ipv6.conf.all.forwarding" = 1;
};
services.journald.settings.Journal.SystemMaxUse = "500M";
nix.settings = { min-free = 5 * 1024 * 1024 * 1024; max-free = 10 * 1024 * 1024 * 1024; };
virtualisation.podman.autoPrune = { enable = true; flags = [ "--all" ]; };
fileSystems."/home" = {
device = "/dev/disk/by-uuid/30f357aa-fc86-4bcd-bed7-c91fc8afbdbc";
fsType = "ext4";
options = [ "defaults" "noatime" ];
};
};
};
}