summaryrefslogtreecommitdiff
path: root/scripts/default.nix
blob: 983216d1af29aaf294b0208e4f7f624520bf8bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ pkgs }:
let
  commonInputs = with pkgs; [
    git
    gnupg
    sops
    nix
    coreutils
    util-linux
    nixos-facter
  ];
in
{
  install = pkgs.writeShellApplication {
    name = "nixos-install";
    runtimeInputs = commonInputs ++ [ pkgs.disko-install ];
    text = builtins.readFile ./install.sh;
  };

  setup = pkgs.writeShellApplication {
    name = "nixos-setup";
    runtimeInputs =
      commonInputs
      ++ (with pkgs; [
        ssh-to-age
        ripgrep
        sd
        nh
        fd
      ]);
    text = builtins.readFile ./setup.sh;
  };
}