forked from c3d2/nix-config
add hacks
This commit is contained in:
parent
af8c1e2c9a
commit
805e84f73f
|
@ -223,7 +223,11 @@
|
||||||
_module.args = extraArgs // {
|
_module.args = extraArgs // {
|
||||||
inherit hostRegistry inputs zentralwerk;
|
inherit hostRegistry inputs zentralwerk;
|
||||||
};
|
};
|
||||||
nixpkgs.overlays = [ self.overlay ];
|
nixpkgs = {
|
||||||
|
overlays = [ self.overlay ];
|
||||||
|
# hack that needed to be added 2022-03-2x
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
self.nixosModules.c3d2
|
self.nixosModules.c3d2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# This module defines options for use by all C3D2 machines.
|
# This module defines options for use by all C3D2 machines.
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.c3d2;
|
cfg = config.c3d2;
|
||||||
|
@ -171,7 +171,9 @@ in
|
||||||
(lib.attrsets.filterAttrs (n: v: v.ip6 != null) cfg.hosts)
|
(lib.attrsets.filterAttrs (n: v: v.ip6 != null) cfg.hosts)
|
||||||
));
|
));
|
||||||
|
|
||||||
programs.nncp.settings = lib.mkIf cfg.mergeNncpSettings cfg.nncp;
|
programs = lib.optionalAttrs (options.programs ? nncp) {
|
||||||
|
nncp.settings = lib.optionalAttrs cfg.mergeNncpSettings cfg.nncp;
|
||||||
|
};
|
||||||
|
|
||||||
users.motd = lib.mkIf cfg.enableMotd (builtins.readFile ./motd);
|
users.motd = lib.mkIf cfg.enableMotd (builtins.readFile ./motd);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
nncpCfgFile = "/run/nncp.hjson";
|
nncpCfgFile = "/run/nncp.hjson";
|
||||||
programCfg = config.programs.nncp;
|
programCfg = lib.optionalAttrs (config.programs ? nncp) config.programs.nncp;
|
||||||
callerCfg = config.services.nncp.caller;
|
callerCfg = config.services.nncp.caller;
|
||||||
daemonCfg = config.services.nncp.daemon;
|
daemonCfg = config.services.nncp.daemon;
|
||||||
settingsFormat = pkgs.formats.json { };
|
settingsFormat = pkgs.formats.json { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user