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
8
in {
9
9
imports = [
10
10
./hardware.nix
11
11
-
./klipper.nix
12
11
./mainsail.nix
13
12
./moonraker.nix
13
13
+
./klipper
14
14
inputs.nixos-hardware.nixosModules.raspberry-pi-3
15
15
(modulesPath + "/installer/scan/not-detected.nix")
16
16
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
-8
hosts/anemone/klipper.nix
···
1
1
-
{
2
2
-
services.klipper = {
3
3
-
enable = true;
4
4
-
# user = "klipper";
5
5
-
# group = "klipper";
6
6
-
configFile = ./printer.cfg;
7
7
-
};
8
8
-
}
+22
hosts/anemone/klipper/default.nix
···
1
1
+
{pkgs, ...}: let
2
2
+
mainsail-config = pkgs.fetchFromGitHub {
3
3
+
owner = "mainsail-crew";
4
4
+
repo = "mainsail-config";
5
5
+
rev = "ff3869a621db17ce3ef660adbbd3fa321995ac42";
6
6
+
hash = "sha256-gDMAUDqf8no66Jc/jutFNwu7RbD+/qD/6Q6GLWOAA/k=";
7
7
+
};
8
8
+
in {
9
9
+
services.klipper = {
10
10
+
enable = true;
11
11
+
# user = "klipper";
12
12
+
# group = "klipper";
13
13
+
# configDir =
14
14
+
15
15
+
configFile = pkgs.writeText "klipper.cfg" ''
16
16
+
[include ${mainsail-config}/client.cfg]
17
17
+
[include ${./printer.cfg}]
18
18
+
'';
19
19
+
20
20
+
# environment.etc
21
21
+
};
22
22
+
}
+3
-9
hosts/anemone/mainsail.nix
···
1
1
-
{pkgs, ...}: let
2
2
-
mainsail-config = pkgs.fetchFromGitHub {
3
3
-
owner = "mainsail-crew";
4
4
-
repo = "mainsail-config";
5
5
-
rev = "ff3869a621db17ce3ef660adbbd3fa321995ac42";
6
6
-
hash = "sha256-gDMAUDqf8no66Jc/jutFNwu7RbD+/qD/6Q6GLWOAA/k=";
7
7
-
};
8
8
-
in {
1
1
+
{
9
2
services.mainsail = {
10
3
enable = true;
4
4
+
nginx.extraConfig = "client_max_body_size 1000M;";
11
5
};
6
6
+
12
7
networking.firewall.allowedTCPPorts = [80];
13
13
-
environment.etc."mainsail.cfg".source = "${mainsail-config}/client.cfg";
14
8
}
+3
-3
hosts/anemone/moonraker.nix
···
5
5
address = "0.0.0.0";
6
6
port = 7125;
7
7
settings = {
8
8
-
server = {
9
9
-
max_upload_size = 32768; # in MB
10
10
-
};
8
8
+
# server = {
9
9
+
# max_upload_size = 32768; # in MB
10
10
+
# };
11
11
octoprint_compat = {};
12
12
history = {};
13
13
authorization = {
-2
hosts/anemone/printer.cfg
hosts/anemone/klipper/printer.cfg
···
16
16
17
17
# See docs/Config_Reference.md for a description of parameters.
18
18
19
19
-
[include mainsail.cfg]
20
20
-
21
19
[stepper_x]
22
20
step_pin: PC2
23
21
dir_pin: PB9