2026-08-05 18:57:23 +01:00
|
|
|
{
|
|
|
|
|
self,
|
|
|
|
|
inputs,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
flake.nixosModules.core = {
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
modules = with self.nixosModules; [
|
|
|
|
|
user
|
|
|
|
|
bootloader
|
|
|
|
|
nix
|
2026-08-05 21:27:51 +01:00
|
|
|
overlays
|
2026-08-05 18:57:23 +01:00
|
|
|
hardware
|
|
|
|
|
locale
|
|
|
|
|
nix-ld
|
|
|
|
|
];
|
|
|
|
|
in {
|
2026-08-05 22:06:01 +01:00
|
|
|
# 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";
|
|
|
|
|
};
|
|
|
|
|
}
|