system-configuration.nix (552B)
1 { 2 config, 3 pkgs, 4 lib, 5 ... 6 }: 7 let 8 inherit (lib) 9 mkEnableOption 10 mkOption 11 mkIf 12 types 13 ; 14 inherit (pkgs) runCommand; 15 in 16 { 17 options = { 18 system.outputs = { 19 systemConfiguration = mkOption { 20 type = types.package; 21 description = '' 22 pkgs.systemconfig for the configured filesystem, 23 contains 'activate' and 'init' commands 24 ''; 25 internal = true; 26 }; 27 }; 28 }; 29 config = { 30 system.outputs.systemConfiguration = pkgs.systemconfig config.filesystem.contents; 31 }; 32 }