Skip to content

Commit 571f77f

Browse files
committed
[WIP] Temporary rename kupo to kupo-261 in order to allow cohabit
1 parent ae7a4a5 commit 571f77f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
});
4646
nixosModules.kupo = { pkgs, lib, ... }: {
4747
imports = [ ./kupo-nixos-module.nix ];
48-
services.kupo.package = lib.mkOptionDefault self.packages.${pkgs.system}.kupo;
48+
services.kupo-261.package = lib.mkOptionDefault self.packages.${pkgs.system}.kupo;
4949
};
5050
herculesCI.ciSystems = [ "x86_64-linux" ];
5151
};

kupo-nixos-module.nix

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# NixOS module for kupo service
2-
{ config, lib, pkgs, ...}:
2+
{ config, lib, ...}:
33
let
4-
cfg = config.services.kupo;
4+
cfg = config.services.kupo-261;
55
in with lib; {
6-
options.services.kupo = with types; {
6+
options.services.kupo-261 = with types; {
77
enable = mkEnableOption "Kupo - fast, lightweight and configurable chain-index";
88

99
package = mkOption {
@@ -83,11 +83,11 @@ in with lib; {
8383
# }
8484
{
8585
assertion = lib.hasPrefix workDirBase cfg.workDir;
86-
message = "The option services.kupo.workDir should have ${workDirBase} as a prefix!";
86+
message = "The option services.kupo-261.workDir should have ${workDirBase} as a prefix!";
8787
}
8888
];
8989

90-
services.kupo = {
90+
services.kupo-261 = {
9191
# workDir = mkDefault "/var/lib/kupo";
9292
}
9393
# get configuration from cardano-node module if there is one
@@ -100,14 +100,14 @@ in with lib; {
100100
# ));
101101
};
102102

103-
users.users.kupo = mkIf (cfg.user == "kupo") {
103+
users.users.kupo-261 = mkIf (cfg.user == "kupo-261") {
104104
isSystemUser = true;
105105
group = cfg.group;
106106
extraGroups = [ "cardano-node" ];
107107
};
108-
users.groups.kupo = mkIf (cfg.group == "kupo") { };
108+
users.groups.kupo = mkIf (cfg.group == "kupo-261") { };
109109

110-
systemd.services.kupo = {
110+
systemd.services.kupo-261 = {
111111
enable = true;
112112
after = [ "cardano-node.service" ];
113113
wantedBy = [ "multi-user.target" ];

0 commit comments

Comments
 (0)