Update
This commit is contained in:
parent
f2a598668b
commit
80af4584e6
|
@ -1,2 +1,3 @@
|
||||||
**/private/** filter=git-crypt diff=git-crypt
|
**/private/** filter=git-crypt diff=git-crypt
|
||||||
private/** filter=git-crypt diff=git-crypt
|
private/** filter=git-crypt diff=git-crypt
|
||||||
|
*-private.nix filter=git-crypt diff=git-crypt
|
|
@ -178,49 +178,58 @@
|
||||||
assertion = builtins ? currentSystem;
|
assertion = builtins ? currentSystem;
|
||||||
message = "MKK must be build with --impure";
|
message = "MKK must be build with --impure";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
assertion =
|
assertion = config.konfig.decrypted;
|
||||||
let
|
|
||||||
file = ../private/check-encryption;
|
|
||||||
resultFile = pkgs.runCommandLocal "check-encryption" { src = file; } ''
|
|
||||||
if [[ "$(< $src)" != "DECRYPTED" ]]; then
|
|
||||||
echo -n "no" >> $out;
|
|
||||||
else
|
|
||||||
echo -n "yes" >> $out;
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
(builtins.readFile resultFile == "yes");
|
|
||||||
message = "Need to decrypt MKK repo to build";
|
message = "Need to decrypt MKK repo to build";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
# * Args
|
# * Args
|
||||||
{
|
|
||||||
options.konfig = lib.mkOption { default = { }; };
|
|
||||||
config = {
|
|
||||||
konfig = {
|
|
||||||
unstable = mkkArg.unstable;
|
|
||||||
stable = mkkArg.stable;
|
|
||||||
current = mkkArg.current;
|
|
||||||
nixerusPkgs =
|
|
||||||
(import mkkArg.current.nixerus { inherit pkgs; })
|
|
||||||
// (
|
|
||||||
if (pkgs.system == "x86_64-linux") then
|
|
||||||
{
|
|
||||||
i686Linux = import mkkArg.current.nixerus { pkgs = pkgs.pkgsi686Linux; };
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{ }
|
|
||||||
);
|
|
||||||
|
|
||||||
arg = mkkArg;
|
(
|
||||||
rootFlake = (builtins.getFlake mkkArg.configRootPath);
|
let
|
||||||
vars = lib.mkDefault { };
|
decryptedBool =
|
||||||
|
let
|
||||||
|
file = ../private/check-encryption;
|
||||||
|
resultFile = pkgs.runCommandLocal "check-encryption" { src = file; } ''
|
||||||
|
if [[ "$(< $src)" != "DECRYPTED" ]]; then
|
||||||
|
echo -n "no" >> $out;
|
||||||
|
else
|
||||||
|
echo -n "yes" >> $out;
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
(builtins.readFile resultFile == "yes");
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.konfig = lib.mkOption { default = { }; };
|
||||||
|
config = {
|
||||||
|
konfig = {
|
||||||
|
decrypted = decryptedBool;
|
||||||
|
unstable = mkkArg.unstable;
|
||||||
|
stable = mkkArg.stable;
|
||||||
|
current = mkkArg.current;
|
||||||
|
nixerusPkgs =
|
||||||
|
(import mkkArg.current.nixerus { inherit pkgs; })
|
||||||
|
// (
|
||||||
|
if (pkgs.system == "x86_64-linux") then
|
||||||
|
{
|
||||||
|
i686Linux = import mkkArg.current.nixerus { pkgs = pkgs.pkgsi686Linux; };
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ }
|
||||||
|
);
|
||||||
|
|
||||||
|
arg = mkkArg;
|
||||||
|
rootFlake = (builtins.getFlake mkkArg.configRootPath);
|
||||||
|
vars = lib.mkDefault { };
|
||||||
|
};
|
||||||
|
_module.args.konfig = config.konfig;
|
||||||
};
|
};
|
||||||
_module.args.konfig = config.konfig;
|
}
|
||||||
};
|
)
|
||||||
}
|
|
||||||
# * common.nix END
|
# * common.nix END
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# * default.nix
|
# * Outputs - default.nix
|
||||||
{ inputs, configRootPath }:
|
{ inputs, configRootPath }:
|
||||||
let
|
let
|
||||||
stable = inputs.config-stable;
|
stable = inputs.config-stable;
|
||||||
|
@ -24,7 +24,7 @@ in
|
||||||
./hosts/materusPC.nix
|
./hosts/materusPC.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
# * default.nix END
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -8,6 +8,7 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./materusPC-private.nix
|
||||||
# * CONFIG
|
# * CONFIG
|
||||||
# ** Nix System Settings
|
# ** Nix System Settings
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue