nix/nixos/minimal.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2023-09-21 13:31:55 +02:00
{ lib, config, pkgs, hostname, stateVersion, username, desktop, gpu, inputs, platform, theme, ... }: {
imports = [
# Services
./common/services/openssh.nix
./common/services/fail2ban.nix
# NixOS Modules
2023-12-05 05:40:33 +01:00
# ./common/modules/networking.nix # Initial Networking configs
2023-10-06 12:41:55 +02:00
./common/modules/nixos.nix # NixOS related items
./common/modules/remote-builders.nix # Add remote builders
2023-09-21 13:31:55 +02:00
2023-12-01 04:43:38 +01:00
./users/root
2023-09-21 13:31:55 +02:00
./users/${username}
./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
2023-12-11 13:01:07 +01:00
# enable passwordless elevation
# Useful for deploy-rs
security.pam.enableSSHAgentAuth = true;
2023-09-21 13:31:55 +02:00
# List packages installed in system profile
environment.systemPackages = with pkgs; [
sbctl
wget
killall
curl
rsync
git
duf
ncdu
du-dust
btop
iftop
nload
iotop
sops
gnupg
cryptsetup
parted
screen
2023-12-12 13:50:56 +01:00
sshpass
2023-09-21 13:31:55 +02:00
];
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
system.stateVersion = stateVersion;
}