mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
home-manager kat user refactor
This commit is contained in:
parent
b1f27aa74d
commit
1230ff387b
13 changed files with 34 additions and 82 deletions
|
|
@ -1,11 +1,20 @@
|
|||
rec {
|
||||
base = ./base.nix;
|
||||
gui = ./gui.nix;
|
||||
sway = ./sway.nix;
|
||||
dev = ./dev.nix;
|
||||
media = ./media.nix;
|
||||
personal = ./personal.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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue