nixos/extra-container: init

This commit is contained in:
Erik Arvstedt 2021-09-30 21:03:20 +02:00
parent e02190a5d0
commit a807cd3a00
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 18 additions and 0 deletions

@ -135,6 +135,7 @@
./programs/droidcam.nix
./programs/environment.nix
./programs/evince.nix
./programs/extra-container.nix
./programs/feedbackd.nix
./programs/file-roller.nix
./programs/firejail.nix

@ -0,0 +1,17 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.programs.extra-container;
in {
options = {
programs.extra-container.enable = mkEnableOption ''
extra-container, a tool for running declarative NixOS containers
without host system rebuilds
'';
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.extra-container ];
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
};
}