refactor: Fully modularize the working system components to be more
reuasable
This commit is contained in:
22
sw/kiosk/programs.nix
Normal file
22
sw/kiosk/programs.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.modules.sw;
|
||||
basePackages = with pkgs; [
|
||||
libcamera
|
||||
chromium
|
||||
glib
|
||||
squeekboard
|
||||
dconf
|
||||
phoc
|
||||
gsettings-desktop-schemas
|
||||
];
|
||||
in {
|
||||
environment.systemPackages = subtractLists cfg.excludePackages (basePackages ++ cfg.extraPackages);
|
||||
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user