diff options
| author | 2026-09-17 11:05:45 +0200 | |
|---|---|---|
| committer | 2026-09-17 11:05:45 +0200 | |
| commit | ae3fa667bda75f11881c9209dc67226f98bcfd95 (patch) | |
| tree | 1c2b16d8a97342fa608a15583ecc85ff0ec968eb /lib/mkHome.nix | |
| download | desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.tar.gz desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.tar.bz2 desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.zip | |
Add cross-platform Nix flake bootstrap
Adds a flake providing shared modules for NixOS and standalone
home-manager, a copyable NixOS host template, and the OpenSpec
tooling/change scaffolding used to plan this work.
Diffstat (limited to 'lib/mkHome.nix')
| -rw-r--r-- | lib/mkHome.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mkHome.nix b/lib/mkHome.nix new file mode 100644 index 0000000..db85b86 --- /dev/null +++ b/lib/mkHome.nix | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | { inputs }: | ||
| 2 | { username, system, extraModules ? [ ] }: | ||
| 3 | inputs.home-manager.lib.homeManagerConfiguration { | ||
| 4 | pkgs = inputs.nixpkgs.legacyPackages.${system}; | ||
| 5 | modules = [ ../users/${username}.nix ] ++ extraModules; | ||
| 6 | } | ||
