Files
nixos/modules/system/core/default.nix
T

45 lines
977 B
Nix
Raw Normal View History

2026-08-05 18:57:23 +01:00
{
self,
inputs,
...
}: {
flake.nixosModules.core = {
pkgs,
lib,
...
}: let
modules = with self.nixosModules; [
user
bootloader
nix
overlays
2026-08-05 18:57:23 +01:00
hardware
locale
nix-ld
];
in {
# Hardware/disk config is deliberately NOT imported here. It is per-host and
# lives in modules/hosts/<host>/{_hardware.nix,disks.nix}, wired up by that
# host's default.nix. Importing it from this shared module used to mean both
# hosts resolved to whichever machine's /etc/nixos file existed at build time.
imports = modules;
2026-08-05 18:57:23 +01:00
services = {
openssh.enable = true;
avahi.enable = true;
};
environment.systemPackages = with pkgs; [
# neovim is provided by the nvim feature module (programs.neovim.enable).
unzip
p7zip-rar
usbutils
lsof
gvfs
libnotify
python313
curlWithGnuTls
wget
];
system.stateVersion = "26.05";
};
}