mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:08:25 +02:00
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{
|
|
# NOTE: the args not used in this file CAN NOT be removed!
|
|
# because haumea pass argument lazily,
|
|
# and these arguments are used in the functions like `mylib.nixosSystem`, `mylib.colmenaSystem`, etc.
|
|
inputs,
|
|
lib,
|
|
myvars,
|
|
mylib,
|
|
system,
|
|
genSpecialArgs,
|
|
...
|
|
} @ args: let
|
|
# Shoukei (祥瓊, Shōkei)
|
|
name = "shoukei";
|
|
base-modules = {
|
|
nixos-modules = map mylib.relativeToRoot [
|
|
# common
|
|
"secrets/nixos.nix"
|
|
"modules/nixos/desktop.nix"
|
|
# host specific
|
|
"hosts/12kingdoms-${name}"
|
|
];
|
|
home-modules = map mylib.relativeToRoot [
|
|
# common
|
|
"home/linux/gui.nix"
|
|
# host specific
|
|
"hosts/12kingdoms-${name}/home.nix"
|
|
];
|
|
};
|
|
|
|
modules-hyprland = {
|
|
nixos-modules =
|
|
[
|
|
{
|
|
modules.desktop.wayland.enable = true;
|
|
modules.secrets.desktop.enable = true;
|
|
modules.secrets.impermanence.enable = true;
|
|
}
|
|
]
|
|
++ base-modules.nixos-modules;
|
|
home-modules =
|
|
[
|
|
{modules.desktop.hyprland.enable = true;}
|
|
]
|
|
++ base-modules.home-modules;
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
# host with hyprland compositor
|
|
"${name}-hyprland" = mylib.nixosSystem (modules-hyprland // args);
|
|
};
|
|
|
|
# generate iso image for hosts with desktop environment
|
|
packages = {
|
|
"${name}-hyprland" = inputs.self.nixosConfigurations."${name}-hyprland".config.formats.iso;
|
|
};
|
|
}
|