nixos/hosts/astral/default.nix
2025-10-08 17:14:28 -07:00

71 lines
1.4 KiB
Nix
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ nixosModules, modulesPath, lib, pkgs, ... }: {
imports = [
"${modulesPath}/virtualisation/amazon-image.nix"
nixosModules.nettika
nixosModules.promptmoji
];
boot.loader.grub.device = lib.mkForce "/dev/nvme0n1";
nix = {
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
settings.trusted-users = [ "@wheel" ];
};
networking = {
hostName = "astral";
firewall.allowedTCPPorts = [ 80 443 ];
networkmanager.enable = true;
};
users.defaultUserShell = pkgs.fish;
security.sudo.wheelNeedsPassword = false;
environment.variables.EDITOR = "nano";
services.caddy = {
enable = true;
virtualHosts = {
"astral.leaf.ninja".extraConfig = ''
respond "astral is online"
header Strict-Transport-Security: "max-age=63072000; includeSubDomains"
'';
};
};
programs.fish.enable = true;
programs.git = {
enable = true;
lfs.enable = true;
config = {
init.defaultBranch = "master";
user = {
email = "git@nettika.cat";
name = "Nettika";
};
credential.helper = "store";
};
};
programs.nano = {
enable = true;
nanorc = ''
set autoindent
set linenumbers
'';
};
documentation.man.generateCaches = false;
promptSymbol = "";
time.timeZone = "America/Los_Angeles";
system.stateVersion = "23.05";
}