1
0
Fork 0

use imputs over self

This commit is contained in:
kiara Grouwstra 2025-03-12 14:22:32 +01:00
parent ae08673c1b
commit 76ff180ca7
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
4 changed files with 18 additions and 11 deletions

View file

@ -12,8 +12,8 @@
};
outputs =
inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit self inputs; } {
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"

View file

@ -21,7 +21,7 @@ let
makeResourceModule =
{ vmName, isTestVm }:
{
_module.args = { inherit self inputs; };
_module.args = { inherit inputs; };
imports = [
./common/resource.nix
(if isTestVm then ./test-machines + "/${vmName}" else ./machines + "/${vmName}")

View file

@ -1,4 +1,10 @@
{
inputs,
config,
pkgs,
...
}@args:
builtins.trace args {
fediversityVm = {
vmId = 201;
proxmox = "fediversity";
@ -15,9 +21,10 @@
};
};
nixos.module = {
imports = [
./fedipanel.nix
];
};
# nixos.module = {
# imports = [
# ./fedipanel.nix
# ];
# };
nixos.module = import ./fedipanel.nix { inherit inputs config pkgs; };
}

View file

@ -1,5 +1,5 @@
{
self,
inputs,
config,
pkgs,
...
@ -18,7 +18,7 @@ in
};
environment.systemPackages = [
self
inputs
panel
];
@ -44,7 +44,7 @@ in
};
};
systemd.services.${name}.env = {
REPO_DIR = builtins.trace self self;
REPO_DIR = builtins.trace inputs inputs;
NIX_DIR = pkgs.nix;
};
}