Remove unused stuff
This commit is contained in:
parent
0b640e0e15
commit
5df791bd5a
1 changed files with 1 additions and 23 deletions
|
@ -17,6 +17,7 @@ let
|
||||||
gnugrep
|
gnugrep
|
||||||
gawk
|
gawk
|
||||||
git
|
git
|
||||||
|
openssh
|
||||||
nix
|
nix
|
||||||
bash
|
bash
|
||||||
jq
|
jq
|
||||||
|
@ -38,15 +39,6 @@ let
|
||||||
cp -a "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" $out/etc/ssl/certs/ca-bundle.crt
|
cp -a "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" $out/etc/ssl/certs/ca-bundle.crt
|
||||||
'';
|
'';
|
||||||
numInstances = 1;
|
numInstances = 1;
|
||||||
pushToCache = pkgs.writeScript "push-to-cache.sh" ''
|
|
||||||
#!/bin/sh
|
|
||||||
set -eu
|
|
||||||
set -f # disable globbing
|
|
||||||
export IFS=' '
|
|
||||||
|
|
||||||
echo "Uploading paths" $OUT_PATHS
|
|
||||||
exec nix copy --to "s3://cache?profile=default®ion=eu-south-1&scheme=https&endpoint=cache.aciceri.dev" $OUT_PATHS
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
|
@ -80,7 +72,6 @@ lib.mkMerge [
|
||||||
cat <<NIX_CONFIG > etc/nix/nix.conf
|
cat <<NIX_CONFIG > etc/nix/nix.conf
|
||||||
accept-flake-config = true
|
accept-flake-config = true
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
post-build-hook = ${pushToCache}
|
|
||||||
include access-tokens
|
include access-tokens
|
||||||
NIX_CONFIG
|
NIX_CONFIG
|
||||||
|
|
||||||
|
@ -121,22 +112,9 @@ lib.mkMerge [
|
||||||
nix.settings.trusted-users = [ "nixuser" ];
|
nix.settings.trusted-users = [ "nixuser" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
# Format of the token file:
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# virtualisation.containers.storage.settings = {
|
|
||||||
# storage.driver = "zfs";
|
|
||||||
# storage.graphroot = "/var/lib/containers/storage";
|
|
||||||
# storage.runroot = "/run/containers/storage";
|
|
||||||
# storage.options.zfs.fsname = "zroot/root/podman";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# virtualisation.containers.containersConf.settings = {
|
|
||||||
# # podman seems to not work with systemd-resolved
|
|
||||||
# containers.dns_servers = [ "8.8.8.8" "8.8.4.4" ];
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
systemd.services =
|
systemd.services =
|
||||||
|
|
Loading…
Add table
Reference in a new issue