mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(logistics): cura
This commit is contained in:
parent
5964338ab5
commit
aeb63b345b
3 changed files with 21 additions and 0 deletions
15
overlays/cura.nix
Normal file
15
overlays/cura.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
final: prev: {
|
||||
cura-octoprint = final.cura.override {
|
||||
plugins = [ final.curaPlugins.octoprint ];
|
||||
};
|
||||
|
||||
curaengine = prev.curaengine.override {
|
||||
inherit (final.python311Packages) libarcus;
|
||||
};
|
||||
cura = prev.cura.override {
|
||||
python3 = final.python311;
|
||||
};
|
||||
curaPlugins = prev.curaPlugins.override {
|
||||
python3Packages = final.python311Packages;
|
||||
};
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ in rec {
|
|||
default = nixlib.composeManyExtensions [
|
||||
barcodebuddy
|
||||
builders
|
||||
cura
|
||||
krb5
|
||||
minecraft
|
||||
nfs
|
||||
|
|
@ -12,6 +13,7 @@ in rec {
|
|||
samba
|
||||
];
|
||||
barcodebuddy = import ./barcodebuddy.nix;
|
||||
cura = import ./cura.nix;
|
||||
krb5 = import ./krb5.nix;
|
||||
minecraft = import ./minecraft.nix;
|
||||
nfs = import ./nfs.nix;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
meta,
|
||||
lib,
|
||||
|
|
@ -56,12 +57,15 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.cura-octoprint ];
|
||||
|
||||
users.users.logistics = {
|
||||
uid = 1000;
|
||||
isNormalUser = true;
|
||||
description = "Logistics";
|
||||
extraGroups = [
|
||||
"nixbuilder"
|
||||
(mkIf (!config.services.octoprint.enable) "dialout")
|
||||
(mkIf config.networking.networkmanager.enable "networkmanager")
|
||||
];
|
||||
hashedPasswordFile = config.sops.secrets.logistics-user-password.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue