refactor: make nanuqsaurus module-based; keep btrfs install profile
This commit is contained in:
parent
e640b43b2f
commit
bb138278f1
13 changed files with 218 additions and 173 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue