flake.nix now only declares inputs and calls flake-parts with import-tree
over ./modules: every .nix file under modules/ is a flake-parts module.
Features are aspects (flake.modules.nixos.<name> and
flake.modules.homeManager.<name>); importing an aspect enables it, so the
my.* option modules and their enable flags are gone.
- Add the flake-parts glue: modules/flake/ (systems, shared meta data,
host construction through configurations.nixos, overlays, packages,
apps, dev shell, formatter, checks), modules/users/faumaray.nix
(meta.owner) and modules/core/{nixpkgs,home-manager,install-facts}.nix.
config.my is kept as one read-only derived option so install-system
keeps working unchanged.
- Add the aspects that are already final: secrets, ssh, hyprland,
wezterm, git, stylix, proxy-suite, gitea-runner and claude-code, and
the desktop host (modules/hosts/desktop/{host,hardware,disks}.nix).
- Port the always-on basics to the `core` aspect (nix, boot, locale,
networking, users), lanzaboote and plain systemd-boot to the
`secure-boot` and `systemd-boot` aspects, and the installer ISO to
modules/installer/iso.nix. Behaviour is unchanged; the time zone,
default locale, XKB layouts and the firewall setting now live in
modules/hosts/desktop/host.nix.
- Move the Lua files (Hyprland settings, binds, rules; Neovim init.lua)
with git mv, byte-identical.
- Add bare stubs, marked STUB, for the aspects that the next phase
ports: amd, rocm, gaming, vpn, docker, noctalia, audio, fonts, xdg,
apps, shell and neovim. The host evaluates with them, but those
features are not configured until they are ported.
- Remove lib/, overlays/, apps/, modules/nixos/, modules/home/,
modules/installer/default.nix and hosts/desktop/{default,disks,home}.nix.
- flake.lock: add flake-parts, import-tree, stylix and serena with their
transitive inputs (22 new nodes); every existing pin is unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZ16yf4acmaSiHq81vyQ6Z
45 lines
1.6 KiB
Nix
45 lines
1.6 KiB
Nix
# Overlays exposed as `overlays.<name>`; `default` composes all of them and is
|
|
# applied to every host (modules/core/nixpkgs.nix), to the installer and to the
|
|
# per-system package set (modules/flake/packages.nix).
|
|
{ inputs, lib, ... }:
|
|
{
|
|
flake.overlays = rec {
|
|
# Hyprland's own upstream overlays, built from the pinned `hyprland` flake
|
|
# input against our nixpkgs. Upstream `default` omits the hyprwm libraries
|
|
# (aquamarine, hyprutils, hyprland-guiutils, ...); `hyprland-packages`
|
|
# carries them plus Hyprland, `hyprland-extras` adds the matching portal.
|
|
hyprland = lib.composeManyExtensions [
|
|
inputs.hyprland.overlays.hyprland-packages
|
|
inputs.hyprland.overlays.hyprland-extras
|
|
];
|
|
|
|
# Noctalia from its flake. That flake does not follow our nixpkgs, so the
|
|
# store path matches noctalia.cachix.org and is downloaded, not compiled.
|
|
noctalia = final: _prev: {
|
|
noctalia = inputs.noctalia.packages.${final.stdenv.hostPlatform.system}.default;
|
|
};
|
|
|
|
# This repository's own packages (../../pkgs): install and key helpers.
|
|
additions =
|
|
final: _prev:
|
|
import ../../pkgs {
|
|
pkgs = final;
|
|
inherit inputs;
|
|
};
|
|
|
|
# Changes to existing nixpkgs packages. They apply system-wide and to
|
|
# home-manager (useGlobalPkgs = true).
|
|
modifications = _final: prev: {
|
|
# btop with AMD GPU monitoring (ROCm SMI) for the Radeon card.
|
|
btop = prev.btop.override { rocmSupport = true; };
|
|
};
|
|
|
|
default = lib.composeManyExtensions [
|
|
hyprland
|
|
noctalia
|
|
additions
|
|
modifications
|
|
];
|
|
};
|
|
}
|