Skip to content

Commit

Permalink
cleanup flake and uranus
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jan 3, 2025
1 parent 99db779 commit 42e7937
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions hosts/uranus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ in
{
imports = [
./stateful-jupyter.nix
./stateless-jupyter.nix
];

microvm = {
Expand Down Expand Up @@ -84,7 +83,7 @@ in

};

networking.firewall.allowedTCPPorts = [ 80 443 8080 22 ];
networking.firewall.allowedTCPPorts = [ 8080 ];

users.motd = lib.mkForce (builtins.readFile ./motd.txt);

Expand Down
2 changes: 1 addition & 1 deletion hosts/uranus/stateful-jupyter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ in
let
packages = lib.concatStringsSep " " [
# alphabetically `:sort`ed plz
"bitstring"
"geojson"
"matplotlib"
"numpy"
Expand All @@ -59,7 +60,6 @@ in
"psycopg"
"scipy"
"seaborn"
"bitstring"
];
in
(import ./jupyter-container.nix {
Expand Down
2 changes: 0 additions & 2 deletions hosts/uranus/stateless-jupyter.nix

This file was deleted.

3 changes: 2 additions & 1 deletion modules/TLMS/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
./base.nix
./binary-cache.nix
./general-options.nix
./monitoring.nix
./net.nix
./nginx.nix
./wg.nix
./monitoring.nix
];
}
3 changes: 2 additions & 1 deletion modules/data-hoarder/nginx.nix → modules/TLMS/nginx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ let
'';
in
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
# Open firewall HTTP and HTTPS if nginx is enabled
networking.firewall.allowedTCPPorts = if config.services.nginx.enable then [ 80 443 ] else [];

security.acme.acceptTerms = true;
security.acme.defaults.email = "[email protected]";
Expand Down
1 change: 0 additions & 1 deletion modules/data-hoarder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
./bureaucrat.nix
./file_sharing.nix
./map.nix
./nginx.nix
./postgres.nix
./secrets.nix
./socket.nix
Expand Down

0 comments on commit 42e7937

Please sign in to comment.