tangled
alpha
login
or
join now
42willow.github.io
/
flake
my system configurations ^-^
0
fork
atom
overview
issues
pulls
pipelines
feat(anemone): increase upload limit
42willow.github.io
2 months ago
175ea040
00399d39
+29
-23
6 changed files
expand all
collapse all
unified
split
hosts
anemone
default.nix
klipper
default.nix
printer.cfg
klipper.nix
mainsail.nix
moonraker.nix
+1
-1
hosts/anemone/default.nix
···
8
in {
9
imports = [
10
./hardware.nix
11
-
./klipper.nix
12
./mainsail.nix
13
./moonraker.nix
0
14
inputs.nixos-hardware.nixosModules.raspberry-pi-3
15
(modulesPath + "/installer/scan/not-detected.nix")
16
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
···
8
in {
9
imports = [
10
./hardware.nix
0
11
./mainsail.nix
12
./moonraker.nix
13
+
./klipper
14
inputs.nixos-hardware.nixosModules.raspberry-pi-3
15
(modulesPath + "/installer/scan/not-detected.nix")
16
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
-8
hosts/anemone/klipper.nix
···
1
-
{
2
-
services.klipper = {
3
-
enable = true;
4
-
# user = "klipper";
5
-
# group = "klipper";
6
-
configFile = ./printer.cfg;
7
-
};
8
-
}
···
0
0
0
0
0
0
0
0
+22
hosts/anemone/klipper/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{pkgs, ...}: let
2
+
mainsail-config = pkgs.fetchFromGitHub {
3
+
owner = "mainsail-crew";
4
+
repo = "mainsail-config";
5
+
rev = "ff3869a621db17ce3ef660adbbd3fa321995ac42";
6
+
hash = "sha256-gDMAUDqf8no66Jc/jutFNwu7RbD+/qD/6Q6GLWOAA/k=";
7
+
};
8
+
in {
9
+
services.klipper = {
10
+
enable = true;
11
+
# user = "klipper";
12
+
# group = "klipper";
13
+
# configDir =
14
+
15
+
configFile = pkgs.writeText "klipper.cfg" ''
16
+
[include ${mainsail-config}/client.cfg]
17
+
[include ${./printer.cfg}]
18
+
'';
19
+
20
+
# environment.etc
21
+
};
22
+
}
+3
-9
hosts/anemone/mainsail.nix
···
1
-
{pkgs, ...}: let
2
-
mainsail-config = pkgs.fetchFromGitHub {
3
-
owner = "mainsail-crew";
4
-
repo = "mainsail-config";
5
-
rev = "ff3869a621db17ce3ef660adbbd3fa321995ac42";
6
-
hash = "sha256-gDMAUDqf8no66Jc/jutFNwu7RbD+/qD/6Q6GLWOAA/k=";
7
-
};
8
-
in {
9
services.mainsail = {
10
enable = true;
0
11
};
0
12
networking.firewall.allowedTCPPorts = [80];
13
-
environment.etc."mainsail.cfg".source = "${mainsail-config}/client.cfg";
14
}
···
1
+
{
0
0
0
0
0
0
0
2
services.mainsail = {
3
enable = true;
4
+
nginx.extraConfig = "client_max_body_size 1000M;";
5
};
6
+
7
networking.firewall.allowedTCPPorts = [80];
0
8
}
+3
-3
hosts/anemone/moonraker.nix
···
5
address = "0.0.0.0";
6
port = 7125;
7
settings = {
8
-
server = {
9
-
max_upload_size = 32768; # in MB
10
-
};
11
octoprint_compat = {};
12
history = {};
13
authorization = {
···
5
address = "0.0.0.0";
6
port = 7125;
7
settings = {
8
+
# server = {
9
+
# max_upload_size = 32768; # in MB
10
+
# };
11
octoprint_compat = {};
12
history = {};
13
authorization = {
-2
hosts/anemone/printer.cfg
hosts/anemone/klipper/printer.cfg
···
16
17
# See docs/Config_Reference.md for a description of parameters.
18
19
-
[include mainsail.cfg]
20
-
21
[stepper_x]
22
step_pin: PC2
23
dir_pin: PB9
···
16
17
# See docs/Config_Reference.md for a description of parameters.
18
0
0
19
[stepper_x]
20
step_pin: PC2
21
dir_pin: PB9