mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-18 06:59:43 +02:00
43 lines
845 B
Nix
43 lines
845 B
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,
|
|
mylib,
|
|
myvars,
|
|
system,
|
|
genSpecialArgs,
|
|
...
|
|
}@args:
|
|
let
|
|
name = "fern";
|
|
|
|
modules = {
|
|
darwin-modules =
|
|
(map mylib.relativeToRoot [
|
|
# common
|
|
"secrets/darwin.nix"
|
|
"modules/darwin"
|
|
# host specific
|
|
"hosts/darwin-${name}"
|
|
])
|
|
++ [
|
|
{
|
|
modules.desktop.fonts.enable = true;
|
|
}
|
|
];
|
|
|
|
home-modules = map mylib.relativeToRoot [
|
|
"hosts/darwin-${name}/home.nix"
|
|
"home/darwin"
|
|
];
|
|
};
|
|
|
|
systemArgs = modules // args;
|
|
in
|
|
{
|
|
# macOS's configuration
|
|
darwinConfigurations.${name} = mylib.macosSystem systemArgs;
|
|
}
|