Compare commits
2 Commits
1b34a3e964
...
7bb9426933
Author | SHA1 | Date |
---|---|---|
Pratham Patel | 7bb9426933 | |
Pratham Patel | a243495803 |
11
iso.nix
11
iso.nix
|
@ -52,7 +52,7 @@
|
|||
};
|
||||
|
||||
# all this just because I don't want to clone my NixOS config repo
|
||||
environment.etc."custom-scripts/clone-nixos-config.sh" = {
|
||||
environment.etc."custom-scripts/nixos-config-clone.sh" = {
|
||||
text = ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
set -xeuf -o pipefail
|
||||
|
@ -62,15 +62,16 @@
|
|||
mode = "0777";
|
||||
};
|
||||
systemd.services = {
|
||||
"clone-nixos-config" = {
|
||||
"nixos-config-clone" = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment = [ "PATH=\"${pkgs.openssl}/bin\"" ]; # just in case
|
||||
ExecStart = "${pkgs.sudo}/bin/sudo -i -u nixos ${pkgs.bash}/bin/bash /etc/custom-scripts/clone-nixos-config.sh";
|
||||
ExecStart = "${pkgs.sudo}/bin/sudo -i -u nixos ${pkgs.bash}/bin/bash /etc/custom-scripts/nixos-config-clone.sh";
|
||||
# ^^^^^ is the user in the ISO
|
||||
};
|
||||
requiredBy = [ "getty-pre.target" ];
|
||||
requires = [ "network-online.target" ];
|
||||
requiredBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" "network.target" "nss-lookup.target" "nss-user-lookup.target" ];
|
||||
after = [ "network-online.target" "network.target" "nss-lookup.target" "nss-user-lookup.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue