WIP: change env to environment

This commit is contained in:
Lois Verheij 2025-03-12 16:39:30 +01:00 committed by Kiara Grouwstra
parent 7b77e2ad72
commit b0a8690511
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
3 changed files with 24 additions and 20 deletions

View file

@ -141,7 +141,9 @@ in
## - Each normal machine gets a deployment. ## - Each normal machine gets a deployment.
## - We add a “default” deployment with all normal machines. ## - We add a “default” deployment with all normal machines.
## - We add a “test” deployment with all test machines. ## - We add a “test” deployment with all test machines.
nixops4Deployments = genAttrs machines makeDeployment' // { nixops4Deployments =
builtins.trace (builtins.attrNames inputs) genAttrs machines makeDeployment'
// {
default = makeDeployment machines; default = makeDeployment machines;
test = makeTestDeployment ( test = makeTestDeployment (
fromJSON ( fromJSON (

View file

@ -3,8 +3,9 @@
config, config,
pkgs, pkgs,
... ...
}@args: }:
builtins.trace args { # builtins.trace args.pkgs
{
fediversityVm = { fediversityVm = {
vmId = 201; vmId = 201;
proxmox = "fediversity"; proxmox = "fediversity";

View file

@ -1,13 +1,14 @@
{ {
inputs, inputs,
config, config,
pkgs, # pkgs,
... ...
}: }:
let let
name = "panel"; name = "panel";
panel = (import ../../../panel/default.nix { }).package; panel = (import ../../../panel/default.nix { }).package;
in in
# builtins.trace args.pkgs
{ {
imports = [ imports = [
../../../panel/nix/configuration.nix ../../../panel/nix/configuration.nix
@ -43,8 +44,8 @@ in
STATIC_ROOT = "/var/lib/${name}/static"; STATIC_ROOT = "/var/lib/${name}/static";
}; };
}; };
systemd.services.${name}.env = { systemd.services.${name}.environment = {
REPO_DIR = builtins.trace inputs inputs; REPO_DIR = inputs;
NIX_DIR = pkgs.nix; # NIX_DIR = pkgs.nix;
}; };
} }