user dynamic

This commit is contained in:
2026-03-03 11:14:11 +01:00
parent 5d0cf3bad7
commit ca813f3eb2
6 changed files with 157 additions and 18 deletions

View File

@@ -1,9 +1,17 @@
{ inputs, ... }: {
flake.lib.mkHost = { system, user, host, extraModules ? [] }:
let
fullnames = {
mo = "Mohamed Chrayed";
nadine = "Nadine Peukert";
administrator = "Administrator";
};
in
inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit user host;
fullname = fullnames.${user};
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;