initial migration

This commit is contained in:
Chris Kruining 2026-03-24 14:09:46 +00:00
parent 01fb98ba10
commit 59a1fbaf0f
54 changed files with 522 additions and 613 deletions

View file

@ -2,7 +2,6 @@
config,
lib,
namespace,
inputs,
system,
...
}: let
@ -10,10 +9,6 @@
cfg = config.${namespace}.services.media.mydia;
in {
imports = [
inputs.mydia.nixosModules.default
];
options.${namespace}.services.media.mydia = {
enable = mkEnableOption "Enable Mydia";
};

View file

@ -3,8 +3,8 @@
config,
lib,
namespace,
inputs,
system,
terranixLib,
...
}: let
inherit (builtins) toString;
@ -155,7 +155,7 @@ in {
config' = config;
lib' = lib;
terraformConfiguration = inputs.terranix.lib.terranixConfiguration {
terraformConfiguration = terranixLib.terranixConfiguration {
inherit system;
modules = [
@ -341,11 +341,11 @@ in {
}
'';
script = ''
script = lib.replaceStrings ["\r"] [""] ''
# Sleep for a bit to give the service a chance to start up
sleep 5s
if [ "$(systemctl is-active "${service}")" != "active" ]; then
if [ "$(systemctl is-active ${lib.escapeShellArg service})" != "active" ]; then
echo "${service} is not running"
exit 1
fi