~ruther/nixos-config

ref: 29359bf62e26f7a4139ee778d5cf8aaae5b445b1 nixos-config/nixos/isos/common/shell-apps.nix -rw-r--r-- 812 bytes
29359bf6 — Frantisek Bohacek feat: add gnome iso installatiom image config 10 months ago
                                                                                
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
{ pkgs, config, ... }:

{
  environment.systemPackages = [
    # (pkgs.writeShellApplication "git-clone-nixos-config" { buildInputs = [ pkgs.git ]; } ''
    #   git clone https://github.com/Rutherther/nixos-config
    #   mkdir -p nixos-config/nixos/hosts/$1
    #   nixos-generate-config --dir nixos-config/nixos/hosts/$1 --root /mnt
    # '')

    (pkgs.writeShellApplication {
      name = "git-clone-nixos-config";
      text = ''
        git clone https://github.com/Rutherther/nixos-config
      '';
    })
    (pkgs.writeShellApplication {
      name = "copy-self";
      text = ''
        cp -r ${config.deps-inject.inputs.self} self
      '';
    })
    (pkgs.writeShellApplication {
      name = "link-self";
      text = ''
        ln -s ${config.deps-inject.inputs.self} self
      '';
    })
  ];
}
Do not follow this link