nix/nixos/default.nix

76 lines
2.7 KiB
Nix
Raw Normal View History

2023-08-31 13:22:44 +02:00
{ lib, config, pkgs, hostname, stateVersion, username, desktop, gpu, inputs, platform, theme, ... }: {
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
2023-08-23 07:30:15 +02:00
2023-08-29 06:52:14 +02:00
# CLI Software
./common/software/cli/weechat.nix
2023-08-23 12:24:47 +02:00
# NixOS Modules
2023-08-23 07:30:15 +02:00
./common/modules/fonts.nix # Font Configs
./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # NixOS related items
./users/${username}
./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
# List packages installed in system profile
environment.systemPackages = with pkgs; [
2023-09-23 14:31:46 +02:00
sbctl # Secureboot Control
wget # WebGet
killall # Killall
curl # Curl - For web requests
neofetch # system information viewer
rsync # copy/sync
git # git!
duf # replacement / prettier UI for df
ncdu # ncurses style browser for du/dust
du-dust # better UI for 'du"
home-manager # manage dotfiles
btop # like htop, but prettier
iftop # interface top - network usage
nload # network load - Network usage graphs
iotop # I/O top viewer - disk r/w, etc
sops # manage secrets
gnupg # GNU Privacy Guard
jq # Pretty print JSON
eza # like ls, but prettier
cryptsetup # used to open LUKS devices
parted # Disk partitioner / Formatter
screen # Terminal screen manager
alejandra # Nix code formatter
nixfmt # Nix code formatter
e2fsprogs # disk format utilities, like mkfs.ext4
2023-09-28 13:05:34 +02:00
bat # Like cat, but with syntax highlighting
2023-09-28 14:20:50 +02:00
openssl # Used to generate certs, random strings, etc
2023-08-23 07:30:15 +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;
2023-09-28 14:32:38 +02:00
# Seems like this is needed because of account lockouts while unlocking the disk?
users.users.root.hashedPassword = "$y$j9T$tuWoymR75nguhvCwCQwZq1$Ajxce4ODZiA6Xpai.dwE5MrH4qj.xV2850MtDG2jds0";
2023-08-23 07:30:15 +02:00
}