nix/nixos/minimal.nix

63 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-31 04:31:01 +01:00
{ lib, config, pkgs, hostname, stateVersion, username, desktop, gpu, inputs, system, theme, ... }: {
2023-09-21 13:31:55 +02:00
imports = [
# Services
./common/services/openssh.nix
./common/services/fail2ban.nix
# NixOS Modules
2023-12-17 01:06:31 +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
./users/${username}
./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
2023-12-11 13:01:07 +01:00
2023-09-21 13:31:55 +02:00
# List packages installed in system profile
environment.systemPackages = with pkgs; [
2024-02-08 11:08:43 +01:00
ripgrep
2023-09-21 13:31:55 +02:00
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";
};
2024-01-22 07:47:48 +01:00
# https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959
systemd.services.NetworkManager-wait-online = {
serviceConfig = {
ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
};
};
2023-09-21 13:31:55 +02:00
system.stateVersion = stateVersion;
}