Add NixOS kiosk flake and config
This commit is contained in:
parent
e2e0ea90f5
commit
8c7a442610
2 changed files with 169 additions and 0 deletions
29
flake.nix
Normal file
29
flake.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
description = "Kiosk NixOS ISO with Firefox in kiosk mode";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixos-generators.url = "github:nix-community/nixos-generators";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, nixos-generators }:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
# Build a bootable ISO image using nixos-generators
|
||||
packages.iso = nixos-generators.nixosGenerate {
|
||||
inherit pkgs;
|
||||
format = "iso";
|
||||
modules = [ ./nixos/kiosk.nix ];
|
||||
};
|
||||
|
||||
# Expose the NixOS configuration for direct use if desired
|
||||
nixosConfigurations.kiosk = let
|
||||
lib = nixpkgs.lib;
|
||||
in lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./nixos/kiosk.nix ];
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue