nix/nixos/common/modules/installer.nix
2024-07-15 19:09:15 +09:00

8 lines
318 B
Nix

{ config, desktop, lib, pkgs, username, ... }:
let
ifExists = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
install-system = pkgs.writeScriptBin "install-system" "${builtins.readFile ../../../docs/install.sh}";
in
{
config.environment.systemPackages = [ install-system ];
}