mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
35 lines
778 B
Nix
35 lines
778 B
Nix
{ pkgs, config, lib, sources, witch, options, hostName, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
(import (./hosts + "/${hostName}/nixos"))
|
|
(import (./private/hosts + "/${hostName}/nixos"))
|
|
./profiles/common/nixos.nix
|
|
./private/profile/nixos
|
|
];
|
|
|
|
options.home-manager.users = lib.mkOption {
|
|
type = lib.types.attrsOf (lib.types.submoduleWith {
|
|
modules = [ ];
|
|
specialArgs = {
|
|
inherit sources witch hostName;
|
|
superConfig = config;
|
|
modulesPath = sources.home-manager + "/modules";
|
|
};
|
|
});
|
|
};
|
|
|
|
config = {
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = true;
|
|
|
|
users = {
|
|
kat = {
|
|
imports = [ ./home.nix (import (./hosts + "/${hostName}/home")) ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|