refactor: make nanuqsaurus module-based; keep btrfs install profile

This commit is contained in:
randogoth 2026-02-04 20:53:05 +02:00
parent e640b43b2f
commit bb138278f1
13 changed files with 218 additions and 173 deletions

View file

@ -1,8 +1,15 @@
{ ... }:
{
config,
lib,
...
}:
let
flakeText = (builtins.readFile ../../templates/home-flake.nix);
homeText = (builtins.readFile ../../templates/home-home.nix);
adminUser = lib.attrByPath [ "nanuqsaurus" "admin" "username" ] "admin" config;
substitute = text: lib.replaceStrings [ "@ADMIN_USER@" ] [ adminUser ] text;
flakeText = substitute (builtins.readFile ../../templates/home-flake.nix);
homeText = substitute (builtins.readFile ../../templates/home-home.nix);
in
{
environment.etc = {