mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
83 lines
1.8 KiB
Nix
83 lines
1.8 KiB
Nix
{ hostname, pkgs, username, ... }: {
|
|
imports = [
|
|
../common/linux/internationalisation.nix
|
|
];
|
|
|
|
environment = {
|
|
shells = with pkgs; [ bash zsh ];
|
|
systemPackages = with pkgs; [
|
|
age
|
|
dconf2nix
|
|
file
|
|
iftop
|
|
inetutils
|
|
iotop
|
|
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;
|
|
}
|