feat: Ensure ability to change kisokUrl from inventory.nix

This commit is contained in:
UGA Innovation Factory
2025-12-10 10:47:32 -05:00
committed by Hunter Halloran
parent 67e763cb5f
commit 2313b60bbf
2 changed files with 15 additions and 4 deletions

View File

@@ -116,17 +116,23 @@ let
overrideModule =
{ ... }:
let
# Remove special keys that are not filesystem options
# Remove special keys for filesystem overrides, keep other config attrs
fsConf = builtins.removeAttrs devConf [
"extraUsers"
"flakeUrl"
"hostname"
"modules"
];
extraConfig = lib.removeAttrs devConf [
"extraUsers"
"flakeUrl"
"hostname"
];
in
lib.mkIf hasOverride {
lib.mkIf hasOverride (lib.recursiveUpdate {
host.filesystem = fsConf;
modules.users.enabledUsers = devConf.extraUsers or [ ];
};
} extraConfig);
config = mkHost {
hostName = hostName;

View File

@@ -44,7 +44,12 @@
# Surface Tablet Configuration (Kiosk Mode)
# 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
nix-lxc = {