crimes
parent
e1a31d8461
commit
d9c5b5a31a
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -a
|
||||||
source /run/agenix/ci-secrets
|
source /run/agenix/ci-secrets
|
||||||
|
set +a
|
||||||
|
|
||||||
|
cat ci-secrets.nix | envsubst > ci-secrets.nix.tmp
|
||||||
|
mv ci-secrets.nix.tmp ci-secrets.nix
|
||||||
|
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
|
|
5
.ci.sh
5
.ci.sh
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -a
|
||||||
source /run/agenix/ci-secrets
|
source /run/agenix/ci-secrets
|
||||||
|
set +a
|
||||||
|
|
||||||
|
cat ci-secrets.nix | envsubst > ci-secrets.nix.tmp
|
||||||
|
mv ci-secrets.nix.tmp ci-secrets.nix
|
||||||
|
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
wifi = "$__SECRET_wifi_secrets";
|
||||||
|
}
|
|
@ -42,6 +42,7 @@ in {
|
||||||
wget
|
wget
|
||||||
jq
|
jq
|
||||||
nixos-rebuild
|
nixos-rebuild
|
||||||
|
envsubst
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{ config, pkgs, lib, inputs, ... }:
|
{ config, pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
|
let ci-secrets = import ../../ci-secrets.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# https://en.wikipedia.org/wiki/Aka_Manto
|
# https://en.wikipedia.org/wiki/Aka_Manto
|
||||||
networking.hostName = "akamanto";
|
networking.hostName = "akamanto";
|
||||||
|
@ -20,8 +22,7 @@
|
||||||
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
|
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."wifi-secrets".text =
|
environment.etc."wifi-secrets".text = ci-secrets.wifi;
|
||||||
builtins.getEnv "__SECRET_wifi_secrets";
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
|
|
Loading…
Reference in New Issue