dots/modules/hosts/nixos/default.nix
Gene Liverman 5047d93b86
Restructure modules/shared and update all imports
- Rename modules/hosts/common to modules/shared
- Split shared into home/general, home/linux, and nixos subdirectories
- Update all import paths in lib/ and modules/hosts/
- Fix hardcoded /Users/ path to use config.home.homeDirectory
- Update .sops.yaml path for secrets
2026-03-14 00:10:30 -04:00

84 lines
1.8 KiB
Nix

{ hostname, pkgs, username, ... }: {
imports = [
../shared/nixos/internationalisation.nix
];
environment = {
shells = with pkgs; [ bash zsh ];
systemPackages = with pkgs; [
age
dconf2nix
file
iftop
inetutils
iotop
lsof
mosquitto
net-tools
neofetch
python3
rclone
smartmontools
sops
ssh-to-age
sysstat
tailscale
unzip
wget
xidel
];
};
fonts.fontDir.enable = true;
fonts.packages = with pkgs; [
font-awesome
nerd-fonts.hack
# Pulled from https://github.com/NixOS/nixpkgs/blob/nixos-25.05/pkgs/data/fonts/nerd-fonts/manifests/fonts.json
nerd-fonts.sauce-code-pro
];
networking.hostName = "${hostname}";
nix.settings = {
allowed-users = [ "${username}" ];
download-buffer-size = 524288000;
experimental-features = [
"flakes"
"nix-command"
];
# extra-substituters = [
# ];
# extra-trusted-public-keys = [
# ];
substituters = [
"https://cache.nixos.org" # default one
"https://cache.flox.dev"
"https://cache.thalheim.io"
"https://cosmic.cachix.org/"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" # default one
"cache.thalheim.io-1:R7msbosLEZKrxk/lKxf9BTjOOH7Ax3H0Qj0/6wiHOgc="
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
];
trusted-users = [ "${username}" ];
};
programs = {
bandwhich.enable = true;
zsh.enable = true;
};
security.sudo.wheelNeedsPassword = false;
services = {
openssh.enable = true;
};
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
time.timeZone = "America/New_York";
users.defaultUserShell = pkgs.zsh;
}