fix: isgraphical option
This commit is contained in:
parent
02ff41c4fe
commit
4b656a99b5
1 changed files with 26 additions and 29 deletions
|
@ -54,38 +54,35 @@ rec {
|
||||||
${target}."${host}" = builder {
|
${target}."${host}" = builder {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(
|
{
|
||||||
{ config, ... }:
|
options = {
|
||||||
{
|
dotfiles = {
|
||||||
options = {
|
username = mkOption {
|
||||||
dotfiles = {
|
type = types.str;
|
||||||
username = mkOption {
|
default = username;
|
||||||
type = types.str;
|
description = "The username of the user";
|
||||||
default = username;
|
|
||||||
description = "The username of the user";
|
|
||||||
};
|
|
||||||
desktop = mkOption {
|
|
||||||
type = types.nullOr (
|
|
||||||
types.enum [
|
|
||||||
"cosmic"
|
|
||||||
"gnome"
|
|
||||||
"hyprland"
|
|
||||||
"sway"
|
|
||||||
]
|
|
||||||
);
|
|
||||||
default = if (pkgs.stdenv.isLinux && config.dotfiles.isGraphical) then "sway" else null;
|
|
||||||
description = "The desktop environment to use";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
isGraphical = mkOption {
|
desktop = mkOption {
|
||||||
type = types.bool;
|
type = types.nullOr (
|
||||||
default = isGraphical;
|
types.enum [
|
||||||
description = "Whether the system is a graphical target";
|
"cosmic"
|
||||||
|
"gnome"
|
||||||
|
"hyprland"
|
||||||
|
"sway"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
default = if (pkgs.stdenv.isLinux && isGraphical) then "sway" else null;
|
||||||
|
description = "The desktop environment to use";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config.networking.hostName = host;
|
isGraphical = mkOption {
|
||||||
}
|
type = types.bool;
|
||||||
)
|
default = isGraphical;
|
||||||
|
description = "Whether the system is a graphical target";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config.networking.hostName = host;
|
||||||
|
}
|
||||||
./common/shared
|
./common/shared
|
||||||
./common/${hostPlatform}
|
./common/${hostPlatform}
|
||||||
./${host}
|
./${host}
|
||||||
|
|
Loading…
Reference in a new issue