nix/nixos/default.nix

53 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-14 06:10:27 +01:00
{ inputs, lib, pkgs, hostname, stateVersion, username, desktop, system, ... }: {
2023-08-23 07:30:15 +02:00
imports = [
2023-09-20 13:29:33 +02:00
# Modules
inputs.disko.nixosModules.disko
2023-08-23 07:30:15 +02:00
# Services
2023-08-23 12:24:47 +02:00
./common/services/openssh.nix
./common/services/promtail.nix
./common/services/fail2ban.nix
2023-08-23 07:30:15 +02:00
./common/services/telegraf.nix
./common/services/tailscale.nix
2023-08-27 13:51:24 +02:00
./common/services/gnupg-agent.nix
2023-08-31 06:11:44 +02:00
./common/services/opensnitch.nix
2024-03-21 14:42:48 +01:00
# Software
2024-02-17 14:38:35 +01:00
./common/software/cli/weechat.nix
2024-03-21 14:42:48 +01:00
./common/software/packages.nix
2023-08-23 07:30:15 +02:00
2023-08-23 12:24:47 +02:00
# NixOS Modules
2023-10-06 12:41:55 +02:00
./common/modules/fonts.nix # Font Configs
./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # NixOS related items
./common/modules/remote-builders.nix # Add remote builders
2023-08-23 07:30:15 +02:00
./users/${username}
./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
# 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-08-23 07:30:15 +02:00
system.stateVersion = stateVersion;
2024-02-10 02:32:16 +01:00
nixpkgs.hostPlatform = system;
2023-08-23 07:30:15 +02:00
}