mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
20 lines
545 B
Nix
20 lines
545 B
Nix
let katUser = { lib }: let
|
|
userImport = profile: { config, ... }: {
|
|
config.home-manager.users.kat = {
|
|
imports = [
|
|
(./. + "/${profile}")
|
|
];
|
|
};
|
|
}; profileNames = [
|
|
"gui"
|
|
"sway"
|
|
"dev"
|
|
"media"
|
|
"personal"
|
|
]; userProfiles = with userProfiles;
|
|
lib.genAttrs profileNames userImport // {
|
|
base = { imports = [ ./nixos.nix (userImport "base") ]; };
|
|
server = { imports = [ personal ]; };
|
|
guiFull = { imports = [ gui sway dev media personal ]; };
|
|
}; in userProfiles;
|
|
in { __functor = self: katUser; isModule = false; }
|