mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor(ci): overlays output
This commit is contained in:
parent
3c19a00aaa
commit
5658105812
6 changed files with 39 additions and 40 deletions
1
lib.nix
1
lib.nix
|
|
@ -87,6 +87,7 @@ in {
|
|||
gensokyo-zone = {
|
||||
inherit inputs;
|
||||
inherit (inputs) self;
|
||||
inherit (inputs.self) overlays;
|
||||
inherit (inputs.self.lib) tree meta lib systems;
|
||||
};
|
||||
generate = import ./generate.nix {inherit inputs tree;};
|
||||
|
|
|
|||
5
modules/extern/nixos/krb5.nix
vendored
5
modules/extern/nixos/krb5.nix
vendored
|
|
@ -338,6 +338,11 @@ in {
|
|||
};
|
||||
|
||||
config = {
|
||||
nixpkgs = mkIf cfg.enable {
|
||||
overlays = [
|
||||
gensokyo-zone.overlays.krb5
|
||||
];
|
||||
};
|
||||
security = {
|
||||
krb5 = mkIf cfg.enable (unmerged.merge cfg.set.krb5Settings);
|
||||
ipa = mkIf cfg.enable (unmerged.merge cfg.set.ipaSettings);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
{inputs, ...}: {
|
||||
{inputs, ...}: let
|
||||
inherit (inputs.self) overlays;
|
||||
in {
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
inputs.arcexprs.overlays.default
|
||||
(import ../../overlays/barcodebuddy.nix)
|
||||
(import ../../overlays/samba.nix)
|
||||
(import ../../overlays/nginx.nix)
|
||||
(import ../../overlays/krb5.nix)
|
||||
overlays.default
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
|
|
|
|||
13
outputs.nix
13
outputs.nix
|
|
@ -14,7 +14,17 @@
|
|||
devShells = import ./devShells.nix {inherit system inputs;};
|
||||
packages = import ./packages {inherit system inputs;};
|
||||
legacyPackages = {
|
||||
inherit (import ./overlays {inherit system inputs;}) pkgs;
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.self.overlays.default
|
||||
inputs.self.overlays.deploy-rs
|
||||
inputs.self.overlays.arc
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
patchedNixpkgs = pkgs.applyPatches {
|
||||
name = "nixpkgs";
|
||||
src = inputs.nixpkgs;
|
||||
|
|
@ -50,6 +60,7 @@
|
|||
in {
|
||||
inherit (outputs) devShells legacyPackages packages checks;
|
||||
inherit (systems) deploy nixosConfigurations;
|
||||
inherit (tree.impure) overlays;
|
||||
nixosModules = treeToModulesOutput tree.impure.modules.extern.nixos;
|
||||
homeModules = treeToModulesOutput tree.impure.modules.extern.home;
|
||||
miscModules = treeToModulesOutput tree.impure.modules.extern.misc;
|
||||
|
|
|
|||
|
|
@ -1,32 +1,19 @@
|
|||
{
|
||||
inputs,
|
||||
system,
|
||||
}: {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.deploy-rs.overlays.default or inputs.deploy-rs.overlay
|
||||
inputs.arcexprs.overlays.default
|
||||
(import ./barcodebuddy.nix)
|
||||
(import ./samba.nix)
|
||||
(import ./nginx.nix)
|
||||
(import ./krb5.nix)
|
||||
(final: prev: {
|
||||
jemalloc =
|
||||
if final.hostPlatform != "aarch64-darwin"
|
||||
then prev.jemalloc
|
||||
else null;
|
||||
})
|
||||
...
|
||||
}: let
|
||||
inherit (inputs.self.lib) nixlib;
|
||||
in rec {
|
||||
default = nixlib.composeManyExtensions [
|
||||
barcodebuddy
|
||||
krb5
|
||||
nginx
|
||||
samba
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowBroken = true;
|
||||
allowUnsupportedSystem = false;
|
||||
permittedInsecurePackages = [
|
||||
"ffmpeg-3.4.8"
|
||||
"ffmpeg-2.8.17"
|
||||
"openssl-1.1.1w"
|
||||
];
|
||||
};
|
||||
};
|
||||
barcodebuddy = import ./barcodebuddy.nix;
|
||||
krb5 = import ./krb5.nix;
|
||||
nginx = import ./nginx.nix;
|
||||
samba = import ./samba.nix;
|
||||
deploy-rs = inputs.deploy-rs.overlays.default or inputs.deploy-rs.overlay;
|
||||
arc = inputs.arcexprs.overlays.default;
|
||||
}
|
||||
|
|
|
|||
6
tree.nix
6
tree.nix
|
|
@ -77,10 +77,6 @@
|
|||
"nixos/*".functor = {
|
||||
enable = true;
|
||||
};
|
||||
"hardware".evaluateDefault = true;
|
||||
"nixos/cross".evaluateDefault = true;
|
||||
"hardware/*".evaluateDefault = true;
|
||||
"home".evaluateDefault = true;
|
||||
"home/*".functor.enable = true;
|
||||
"overlays".evaluateDefault = true;
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue