Format project using nixfmt rfc candidate.

This commit is contained in:
Kevin Baensch 2024-11-20 20:32:38 +01:00
parent 1f63817684
commit a9f7fe416f
Signed by: derped
GPG key ID: C0F1D326C7626543
91 changed files with 1347 additions and 1000 deletions

View file

@ -4,12 +4,12 @@
lib,
...
}:
with lib; let
with lib;
let
cfg = config.system.copySysConf;
cfgPath = ../.;
copySysConf =
if !(isStorePath cfgPath)
then
if !(isStorePath cfgPath) then
pkgs.stdenv.mkDerivation rec {
name = "NixOS_Configuration-${version}";
version = commitIdFromGitRepo (cfgPath + "/.git");
@ -20,8 +20,10 @@ with lib; let
cp -R ./. $out
'';
}
else (builtins.toPath ../.);
in {
else
(builtins.toPath ../.);
in
{
options.system.copySysConf = {
enable = mkOption {
type = types.bool;