Lib/NixOS: Add headless option to system generators
This commit is contained in:
@ -163,6 +163,7 @@
|
|||||||
inherit system mylib;
|
inherit system mylib;
|
||||||
hostname = "nixinator";
|
hostname = "nixinator";
|
||||||
username = "christoph";
|
username = "christoph";
|
||||||
|
headless = false;
|
||||||
extraModules = [
|
extraModules = [
|
||||||
# TODO:
|
# TODO:
|
||||||
# inputs.nix-topology.nixosModules.default
|
# inputs.nix-topology.nixosModules.default
|
||||||
@ -172,6 +173,7 @@
|
|||||||
inherit system mylib;
|
inherit system mylib;
|
||||||
hostname = "nixtop";
|
hostname = "nixtop";
|
||||||
username = "christoph";
|
username = "christoph";
|
||||||
|
headless = false;
|
||||||
extraModules = [
|
extraModules = [
|
||||||
# TODO:
|
# TODO:
|
||||||
# inputs.nix-topology.nixosModules.default
|
# inputs.nix-topology.nixosModules.default
|
||||||
|
@ -10,12 +10,13 @@
|
|||||||
hostname,
|
hostname,
|
||||||
username,
|
username,
|
||||||
extraModules ? [],
|
extraModules ? [],
|
||||||
|
headless ? false,
|
||||||
}:
|
}:
|
||||||
lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
# Values in "specialArgs" are propagated to all system modules.
|
# Values in "specialArgs" are propagated to all system modules.
|
||||||
specialArgs = {inherit inputs hostname mylib system username;};
|
specialArgs = {inherit inputs hostname mylib system username headless;};
|
||||||
|
|
||||||
modules = builtins.concatLists [
|
modules = builtins.concatLists [
|
||||||
[
|
[
|
||||||
@ -35,7 +36,7 @@
|
|||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
# Values in "extraSpecialArgs" are propagated to all HM modules.
|
# Values in "extraSpecialArgs" are propagated to all HM modules.
|
||||||
extraSpecialArgs = {inherit inputs system hostname username mylib;};
|
extraSpecialArgs = {inherit inputs system hostname username mylib headless;};
|
||||||
|
|
||||||
# Use the "pkgs" from the system configuration.
|
# Use the "pkgs" from the system configuration.
|
||||||
# This disables "nixpkgs.*" options in HM modules.
|
# This disables "nixpkgs.*" options in HM modules.
|
||||||
|
Reference in New Issue
Block a user