nix/nixos/small.nix

65 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-14 06:10:27 +01:00
{ pkgs, hostname, stateVersion, username, inputs, system, ... }: {
2023-10-04 12:51:02 +02:00
imports = [
2023-10-04 14:45:59 +02:00
# Modules
inputs.disko.nixosModules.disko
2023-10-04 12:51:02 +02:00
# Services
./common/services/openssh.nix
./common/services/fail2ban.nix
./common/services/tailscale.nix
./common/services/promtail.nix
./common/services/telegraf.nix
2024-01-12 02:10:25 +01:00
./common/services/gnupg-agent.nix
2023-10-04 12:51:02 +02:00
# NixOS Modules
2023-10-06 12:41:55 +02:00
./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # Common NixOS Configurations
./common/modules/remote-builders.nix # Add remote builders
2023-10-04 12:51:02 +02:00
2023-10-06 05:52:40 +02:00
./users/${username}
2023-10-04 12:51:02 +02:00
./hosts/${hostname}
];
2023-12-11 13:01:07 +01:00
2023-10-04 12:51:02 +02:00
# List packages installed in system profile
environment.systemPackages = with pkgs; [
2024-03-14 06:08:10 +01:00
tmux
2024-03-04 01:29:14 +01:00
rbw
2024-02-14 06:57:26 +01:00
dconf
2024-02-08 11:08:43 +01:00
ripgrep
2023-10-04 12:51:02 +02:00
git
2023-10-06 07:07:22 +02:00
bat
2024-04-27 07:36:39 +02:00
exa
2023-10-06 07:07:22 +02:00
duf
2023-10-04 12:51:02 +02:00
gnupg
2023-10-06 07:07:22 +02:00
screen
2023-10-06 07:57:17 +02:00
btop
2023-12-12 13:50:56 +01:00
sshpass
2023-12-15 10:58:06 +01:00
cryptsetup
2024-02-13 04:46:56 +01:00
fd
2023-10-04 12:51:02 +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-10-04 12:51:02 +02:00
system.stateVersion = stateVersion;
2024-02-10 02:32:16 +01:00
nixpkgs.hostPlatform = system;
2024-02-08 11:08:43 +01:00
}