change kisokUrl from inventory.nix
This commit is contained in:
@@ -116,17 +116,23 @@ let
|
|||||||
overrideModule =
|
overrideModule =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
let
|
let
|
||||||
# Remove special keys that are not filesystem options
|
# Remove special keys for filesystem overrides, keep other config attrs
|
||||||
fsConf = builtins.removeAttrs devConf [
|
fsConf = builtins.removeAttrs devConf [
|
||||||
"extraUsers"
|
"extraUsers"
|
||||||
"flakeUrl"
|
"flakeUrl"
|
||||||
"hostname"
|
"hostname"
|
||||||
|
"modules"
|
||||||
|
];
|
||||||
|
extraConfig = lib.removeAttrs devConf [
|
||||||
|
"extraUsers"
|
||||||
|
"flakeUrl"
|
||||||
|
"hostname"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
lib.mkIf hasOverride {
|
lib.mkIf hasOverride (lib.recursiveUpdate {
|
||||||
host.filesystem = fsConf;
|
host.filesystem = fsConf;
|
||||||
modules.users.enabledUsers = devConf.extraUsers or [ ];
|
modules.users.enabledUsers = devConf.extraUsers or [ ];
|
||||||
};
|
} extraConfig);
|
||||||
|
|
||||||
config = mkHost {
|
config = mkHost {
|
||||||
hostName = hostName;
|
hostName = hostName;
|
||||||
|
|||||||
@@ -44,7 +44,12 @@
|
|||||||
|
|
||||||
# Surface Tablet Configuration (Kiosk Mode)
|
# Surface Tablet Configuration (Kiosk Mode)
|
||||||
# Base specs: eMMC drive, 8G Swap
|
# Base specs: eMMC drive, 8G Swap
|
||||||
nix-surface.count = 3;
|
nix-surface = {
|
||||||
|
count = 3;
|
||||||
|
devices = {
|
||||||
|
"1".modules.sw.kioskUrl = "https://google.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# LXC Container Configuration
|
# LXC Container Configuration
|
||||||
nix-lxc = {
|
nix-lxc = {
|
||||||
|
|||||||
Reference in New Issue
Block a user