fix dovecot2 sieve scripts (#61)
* fix dovecot2 sieve scripts * add pathfix
This commit is contained in:
parent
726c3b208e
commit
f746da7c4c
27
flake.nix
27
flake.nix
@ -2,6 +2,7 @@
|
|||||||
description = "NixOS configuration for RAD-Development Servers";
|
description = "NixOS configuration for RAD-Development Servers";
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
|
substituters = [ "https://cache.alicehuston.xyz" "https://cache.nixos.org" "https://nix-community.cachix.org" ];
|
||||||
trusted-substituters = [ "https://cache.alicehuston.xyz" "https://cache.nixos.org" "https://nix-community.cachix.org" ];
|
trusted-substituters = [ "https://cache.alicehuston.xyz" "https://cache.nixos.org" "https://nix-community.cachix.org" ];
|
||||||
trusted-public-keys = [ "cache.alicehuston.xyz:SJAm8HJVTWUjwcTTLAoi/5E1gUOJ0GWum2suPPv7CUo=%" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
trusted-public-keys = [ "cache.alicehuston.xyz:SJAm8HJVTWUjwcTTLAoi/5E1gUOJ0GWum2suPPv7CUo=%" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
||||||
};
|
};
|
||||||
@ -233,26 +234,34 @@
|
|||||||
})
|
})
|
||||||
(builtins.attrValues self.nixosConfigurations)) ++ [
|
(builtins.attrValues self.nixosConfigurations)) ++ [
|
||||||
(forEachSystem (system: {
|
(forEachSystem (system: {
|
||||||
${system}.${nixpkgs-fmt.legacyPackages.${system}.nixpkgs-fmt.name} = pkgsBySystem.${system}.${nixpkgs-fmt.legacyPackages.${system}.nixpkgs-fmt.name};
|
${nixpkgs-fmt.legacyPackages.${system}.nixpkgs-fmt.name} = pkgsBySystem.${system}.${nixpkgs-fmt.legacyPackages.${system}.nixpkgs-fmt.name};
|
||||||
}))
|
}))
|
||||||
]
|
]
|
||||||
));
|
));
|
||||||
} // lib.mapAttrs (_: lib.hydraJob) (
|
} // lib.mapAttrs (__: lib.mapAttrs (_: lib.hydraJob))
|
||||||
|
(
|
||||||
|
let
|
||||||
|
mkBuild = (type:
|
||||||
let
|
let
|
||||||
getBuildEntryPoint = name: nixosSystem:
|
getBuildEntryPoint = name: nixosSystem:
|
||||||
|
if builtins.hasAttr type nixosSystem.config.system.build then
|
||||||
let
|
let
|
||||||
cfg =
|
cfg = nixosSystem.config.system.build.${type};
|
||||||
if (lib.hasPrefix "iso" name) then
|
|
||||||
nixosSystem.config.system.build.isoImage
|
|
||||||
else
|
|
||||||
nixosSystem.config.system.build.toplevel;
|
|
||||||
in
|
in
|
||||||
if nixosSystem.config.nixpkgs.system == "aarch64-linux" then
|
if nixosSystem.config.nixpkgs.system == "aarch64-linux" then
|
||||||
lib.recursiveUpdate cfg { meta.timeout = 24 * 60 * 60; }
|
lib.recursiveUpdate cfg { meta.timeout = 24 * 60 * 60; }
|
||||||
else
|
else
|
||||||
cfg;
|
cfg
|
||||||
|
else { };
|
||||||
in
|
in
|
||||||
lib.mapAttrs getBuildEntryPoint self.nixosConfigurations
|
lib.filterAttrs (n: v: v != { }) (lib.mapAttrs getBuildEntryPoint self.nixosConfigurations)
|
||||||
|
);
|
||||||
|
in
|
||||||
|
builtins.listToAttrs (map
|
||||||
|
(type: {
|
||||||
|
name = type;
|
||||||
|
value = mkBuild type;
|
||||||
|
}) [ "toplevel" "isoImage" ])
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user