From 07a81dcbb630621aa3bd8ebcbca259d82f071c11 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Mon, 22 Apr 2024 21:37:14 -0700 Subject: [PATCH] remove man of war --- provision/flake.nix | 22 ---- provision/hosts/manofwar/configuration.nix | 102 ------------------ provision/hosts/manofwar/fluidd.nix | 5 - provision/hosts/manofwar/hardware.nix | 33 ------ .../hosts/manofwar/home-configuration.nix | 32 ------ provision/hosts/manofwar/klipper.nix | 14 --- provision/hosts/manofwar/moonraker.nix | 29 ----- readme.md | 1 - 8 files changed, 238 deletions(-) delete mode 100644 provision/hosts/manofwar/configuration.nix delete mode 100644 provision/hosts/manofwar/fluidd.nix delete mode 100644 provision/hosts/manofwar/hardware.nix delete mode 100644 provision/hosts/manofwar/home-configuration.nix delete mode 100644 provision/hosts/manofwar/klipper.nix delete mode 100644 provision/hosts/manofwar/moonraker.nix diff --git a/provision/flake.nix b/provision/flake.nix index 1b4178e0..b3ee1741 100644 --- a/provision/flake.nix +++ b/provision/flake.nix @@ -51,28 +51,6 @@ ]; }; - manofwar = lib.nixosSystem { - inherit system; - specialArgs = { inherit user; inherit inputs; }; - modules = [ - ./modules - ./hosts/manofwar/configuration.nix - ./hosts/manofwar/hardware.nix - sops-nix.nixosModules.sops - home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit user; }; - home-manager.users.${user} = { - imports = [ - ./home-modules - ./hosts/manofwar/home-configuration.nix - ]; - }; - } - ]; - }; - shivan = lib.nixosSystem { inherit system; specialArgs = { inherit user; inherit inputs; }; diff --git a/provision/hosts/manofwar/configuration.nix b/provision/hosts/manofwar/configuration.nix deleted file mode 100644 index 53fa7dd4..00000000 --- a/provision/hosts/manofwar/configuration.nix +++ /dev/null @@ -1,102 +0,0 @@ -{ config, pkgs, user, lib, ... }: -{ - imports = [ - #./klipper.nix - #./moonraker.nix - #./fluidd.nix - ]; - - nix = { - package = pkgs.nixFlakes; - extraOptions = "experimental-features = nix-command flakes"; - - settings.auto-optimise-store = true; - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 7d"; - }; - }; - - # Add non-free packages - nixpkgs.config.allowUnfree = true; - nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ]; - nixpkgs.overlays = import ../../lib/overlays.nix; - - # Use zen kernel - boot.kernelPackages = pkgs.linuxPackages; - - # Hardware options - hardware.bluetooth.enable = true; - hardware.bluetooth.package = pkgs.bluez; - hardware.sensor.iio.enable = true; - - # Use the systemd-boot EFI boot loader. - boot.loader.grub.enable = false; - boot.loader.generic-extlinux-compatible.enable = true; - - # Set networking options - networking.hostName = "manofwar"; - networking.firewall.checkReversePath = "loose"; - networking.firewall.enable = false; - networking.networkmanager.enable = true; - - # Set your time zone. - time.timeZone = "America/Los_Angeles"; - i18n.defaultLocale = "en_US.UTF-8"; - - # Add fonts - fonts.packages = with pkgs; [ - nerdfonts - ]; - - # Define user account. - users.users.${user} = { - isNormalUser = true; - extraGroups = [ "dialout" "wheel" ]; # Enable ‘sudo’ for the user. - }; - - environment.systemPackages = with pkgs; [ - libraspberrypi # Library providing access to Raspberry Pi hardware features and interfaces. - ]; - - # Enable modules - modules = { - desktop = { - sway.enable = false; - browser.enable = false; - }; - devel = { - engineering.enable = false; - notes.enable = false; - python.enable = false; - tooling.enable = false; - }; - gaming = { - steam.enable = false; - emulation.enable = false; - misc.enable = false; - }; - services = { - jellyfin.enable = false; - peripherals.enable = false; - samba-client.enable = false; - virt-manager.enable = false; - }; - system = { - secrets.enable = true; - ssh.enable = true; - terminal.enable = true; - wireguard-client = { - enable = false; - #privateKeyFile = "/run/secrets/wireguard/kestrel"; - #address = [ "192.168.3.3/24" ]; - #publicKey = "bd7bbZOngl/FTdBlnbIhgCLNf6yx5X8WjiRB7E1NEQQ="; - #endpoint = "66.218.43.87"; - }; - }; - }; - - # Did you read the comment? - system.stateVersion = "23.11"; -} diff --git a/provision/hosts/manofwar/fluidd.nix b/provision/hosts/manofwar/fluidd.nix deleted file mode 100644 index 53de3975..00000000 --- a/provision/hosts/manofwar/fluidd.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ config, lib, pkgs, user, ... }: - services.fluidd.enable = true; - services.fluidd.nginx.locations."/webcam".proxyPass = "http://127.0.0.1:8080/stream"; - services.nginx.clientMaxBodySize = "1000m"; -} diff --git a/provision/hosts/manofwar/hardware.nix b/provision/hosts/manofwar/hardware.nix deleted file mode 100644 index 77cefe16..00000000 --- a/provision/hosts/manofwar/hardware.nix +++ /dev/null @@ -1,33 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; - fsType = "ext4"; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.end0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; -} diff --git a/provision/hosts/manofwar/home-configuration.nix b/provision/hosts/manofwar/home-configuration.nix deleted file mode 100644 index 6ab1009f..00000000 --- a/provision/hosts/manofwar/home-configuration.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ config, pkgs, user, ... }: -{ - home.username = "${user}"; - home.homeDirectory = "/home/${user}"; - programs.home-manager.enable = true; - - # Setup direnv - programs.direnv = { - enable = true; - enableBashIntegration = true; - nix-direnv.enable = true; - }; - - # Setup git - programs.git = { - enable = true; - userName = "starr-dusT"; - userEmail = "starrtyler88@gmail.com"; - }; - - home.packages = with pkgs; [ - ]; - - # Enable home modules - modules = { - desktop = { - kitty.enable = true; - }; - }; - - home.stateVersion = "23.11"; -} diff --git a/provision/hosts/manofwar/klipper.nix b/provision/hosts/manofwar/klipper.nix deleted file mode 100644 index 94440d5e..00000000 --- a/provision/hosts/manofwar/klipper.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, lib, pkgs, user, ... }: - services.klipper = { - enable = true; - firmwares = { - mcu = { - enable = false; - # Run klipper-genconf to generate this - #configFile = ./avr.cfg; - # Serial port connected to the microcontroller - #serial = "/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55639303235351D01152-if00"; - }; - }; - } -} diff --git a/provision/hosts/manofwar/moonraker.nix b/provision/hosts/manofwar/moonraker.nix deleted file mode 100644 index 5043854e..00000000 --- a/provision/hosts/manofwar/moonraker.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ config, lib, pkgs, user, ... }: - services.moonraker = { - user = "${user}"; - enable = true; - address = "0.0.0.0"; - settings = { - octoprint_compat = { }; - history = { }; - authorization = { - force_logins = true; - cors_domains = [ - "*.local" - "*.lan" - "*://app.fluidd.xyz" - "*://my.mainsail.xyz" - ]; - trusted_clients = [ - "10.0.0.0/8" - "127.0.0.0/8" - "169.254.0.0/16" - "172.16.0.0/12" - "192.168.1.0/24" - "FE80::/10" - "::1/128" - ]; - }; - }; - }; -} diff --git a/readme.md b/readme.md index db2ca6f9..35acfa9e 100644 --- a/readme.md +++ b/readme.md @@ -19,4 +19,3 @@ for information on initial installation. | | [Torus](./provision/hosts/torus/) | Home server | Primary home server for storage, hosting machine backups, and running services like Jellyfin. | | | [Bulwark](./provision/hosts/bulwark/) | Steam Deck | NixOS based Steam Deck that can has my linux niceties and acts like a Steam Deck using the great [Jovian Nixos](https://github.com/Jovian-Experiments/Jovian-NixOS). | | | [Shivan](./provision/hosts/shivan/) | Personal Laptop | Personal (and very slow) laptop for basic mobile work. | -| | [Man of War](./provision/hosts/manofwar/) | 3D Printer RPI | Host for klipper and other services on Voron 2.4 Rev C. |