wild hacking

This commit is contained in:
Ranomier 2025-05-12 19:51:19 +02:00
parent 66072b1d6e
commit 3efa686d83
4 changed files with 29 additions and 0 deletions

16
debug.nix Normal file
View file

@ -0,0 +1,16 @@
{ ... }:
{
imports = [
{lib, config, ... }: {
options.tempDebugVar = lib.mkOption {
type = lib.types.str;
default = "";
description = "tempDebugVar";
};
}
];
environment.etc."debugfile".text = ''
${config.tempDebugVar}
'';
}

View file

@ -8,6 +8,7 @@ in
specialArgs = {inherit inArgs;}; specialArgs = {inherit inArgs;};
modules = [ modules = [
./hosts/${hostname} ./hosts/${hostname}
#./debug.nix
{ {
networking.hostName = hostname; networking.hostName = hostname;

View file

@ -1,6 +1,7 @@
{ {
imports = [ imports = [
./luanti.nix ./luanti.nix
#./mods.nix
./postgresql.nix ./postgresql.nix
]; ];
} }

View file

@ -0,0 +1,11 @@
{ pkgs, config, ... }: let
GitMod = curl: pkgs.fetchgit rec {
url = curl;
fetchSubmodules = true;
deepClone = false;
leaveDotGit = false;
};
this-variable-should-exist = GitMod "https://gitlab.com/rubenwardy/accountmgr";
in {
config.tempDebugVar = break this-variable-should-exist;
}