Rename packages
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.local.packages.linuxcnc-base;
|
||||
cfg = config.local.packages.linuxcnc;
|
||||
inherit (builtins) filter map pathExists listToAttrs;
|
||||
in {
|
||||
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ linuxcnc-with-ethercat ];
|
||||
environment.systemPackages = with pkgs; [ linuxcnc ];
|
||||
|
||||
security.wrappers = listToAttrs (map (f: {
|
||||
name = f;
|
||||
@@ -14,8 +14,8 @@ in {
|
||||
setuid = true;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
source = "${pkgs.linuxcnc-with-ethercat}/bin/${f}-nosetuid";
|
||||
source = "${pkgs.linuxcnc}/bin/${f}-nosetuid";
|
||||
};
|
||||
}) (filter (f: pathExists "${pkgs.linuxcnc-with-ethercat}/bin/${f}-nosetuid") pkgs.linuxcnc-with-ethercat.setuidApps));
|
||||
}) (filter (f: pathExists "${pkgs.linuxcnc}/bin/${f}-nosetuid") pkgs.linuxcnc.setuidApps));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user