nix/nixos/common/modules/installer.nix
2024-07-14 19:52:59 +09:00

8 lines
317 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 ];
}