From 5d9d0cb077e976c6abca9b4f2186d390c8ef67c2 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 15 Dec 2024 14:20:21 -0500 Subject: [PATCH] tree-wide: drop petalburg --- .github/workflows/nix-build.yml | 16 ------ flake.nix | 1 - hosts/petalburg/README.md | 24 --------- hosts/petalburg/default.nix | 95 --------------------------------- hosts/petalburg/home.nix | 18 ------- hosts/petalburg/secrets.nix | 6 --- hosts/petalburg/stylix.nix | 50 ----------------- 7 files changed, 210 deletions(-) delete mode 100644 hosts/petalburg/README.md delete mode 100644 hosts/petalburg/default.nix delete mode 100644 hosts/petalburg/home.nix delete mode 100644 hosts/petalburg/secrets.nix delete mode 100644 hosts/petalburg/stylix.nix diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index ec70d557..254faa85 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -83,22 +83,6 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - name: Build mauville run: nix build --accept-flake-config .#nixosConfigurations.mauville.config.system.build.toplevel - petalburg-build: - runs-on: ubuntu-latest - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - - uses: actions/checkout@main - with: - fetch-depth: 1 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - uses: cachix/cachix-action@master - with: - name: alyraffauf - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build petalburg - run: nix build --accept-flake-config .#nixosConfigurations.petalburg.config.system.build.toplevel rustboro-build: runs-on: ubuntu-latest steps: diff --git a/flake.nix b/flake.nix index d6e0e09b..bba3fac3 100644 --- a/flake.nix +++ b/flake.nix @@ -98,7 +98,6 @@ "fallarbor" "lavaridge" "mauville" - "petalburg" "rustboro" "slateport" ]; diff --git a/hosts/petalburg/README.md b/hosts/petalburg/README.md deleted file mode 100644 index ad9a7410..00000000 --- a/hosts/petalburg/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# petalburg - -## Overview - -Asus TUF A16 AMD Advantage Edition (2023) with AMD Ryzen 7 7735HS and RX77000S dGPU. - -## Todo - -## Specs - -| Model | Asus TUF A16 | -|---------|-------------------------| -| Display | 16.0" 1920x1200 165Hz | -| CPU | AMD Ryzen 7735HS | -| RAM | 16GB 8GBx2 DDR5-4800Mhz | -| iGPU | AMD Radeon 680M | -| dGPU | AMD Radeon RX 7700S | -| Disks | 512GB NVMe SSD | - -## Filesystems - -### / - -Encrypted LUKS btrfs volume. diff --git a/hosts/petalburg/default.nix b/hosts/petalburg/default.nix deleted file mode 100644 index d7c8dabf..00000000 --- a/hosts/petalburg/default.nix +++ /dev/null @@ -1,95 +0,0 @@ -# Asus TUF A16 AMD Advantage Edition (2023) with AMD Ryzen 7 7735HS, 16GB RAM, RX7700S, 512GB SSD. -{ - config, - lib, - pkgs, - self, - ... -}: { - imports = [ - ./home.nix - ./secrets.nix - ./stylix.nix - (import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];}) - self.nixosModules.common-auto-upgrade - self.nixosModules.common-base - self.nixosModules.common-locale - self.nixosModules.common-mauville-share - self.nixosModules.common-nix - self.nixosModules.common-pkgs - self.nixosModules.common-tailscale - self.nixosModules.common-wifi-profiles - self.nixosModules.hw-asus-tuf-a16-amd-7030 - self.nixosModules.hw-common-gaming - ]; - - boot = { - initrd.systemd.enable = true; - - lanzaboote = { - enable = true; - pkiBundle = "/etc/secureboot"; - }; - - loader = { - efi.canTouchEfiVariables = true; - systemd-boot.enable = lib.mkForce false; - }; - }; - - environment.variables.GDK_SCALE = "1.25"; - networking.hostName = "petalburg"; - - services.udev.extraRules = let - hyprlandDynamicRes = pkgs.writeShellScript "hyprland-dynamic-resolution" '' - MON="desc:China Star Optoelectronics Technology Co. Ltd MNG007QA1-1" - RES="1920x1200" - - for dir in /run/user/*; do - for hypr_dir in "$dir/hypr/"*/; do - socket="''${hypr_dir}.socket.sock" - if [[ -S $socket ]]; then - monitor_info=$(echo -e "monitors" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket") - - if echo "$monitor_info" | grep -q "$MON"; then - echo -e "keyword monitor $MON, $RES@$1, 0x0, 1.25, vrr, $2" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket" - fi - - fi - done - done - ''; - in '' - SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="ACAD", ATTR{online}=="1", ACTION=="change", RUN+="${hyprlandDynamicRes} 165 1" - SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="ACAD", ATTR{online}=="0", ACTION=="change", RUN+="${hyprlandDynamicRes} 60 0" - ''; - - system.stateVersion = "24.11"; - - ar = { - apps = { - firefox.enable = true; - podman.enable = true; - steam.enable = true; - }; - - desktop = { - greetd.enable = true; - hyprland.enable = true; - steam.enable = true; - }; - - laptopMode = true; - - users.aly = { - enable = true; - password = "$y$j9T$lRa/vifTJrfAyKkVPklz8.$tSnmqnrJ1bkCncGH59Ug3U5c6CRyiUNH2hHEux0y/v8"; - syncthing = { - enable = true; - certFile = config.age.secrets.syncthingCert.path; - keyFile = config.age.secrets.syncthingKey.path; - syncROMs = true; - }; - }; - }; -} diff --git a/hosts/petalburg/home.nix b/hosts/petalburg/home.nix deleted file mode 100644 index 09bae3a3..00000000 --- a/hosts/petalburg/home.nix +++ /dev/null @@ -1,18 +0,0 @@ -{self, ...}: { - home-manager = { - sharedModules = [ - { - ar.home = { - desktop.hyprland.laptopMonitors = ["desc:China Star Optoelectronics Technology Co. Ltd MNG007QA1-1,1920x1200@165, 0x0, 1.25, vrr, 1"]; - - services.easyeffects = { - enable = true; - preset = "LoudnessEqualizer"; - }; - }; - } - ]; - - users.aly = self.homeManagerModules.aly; - }; -} diff --git a/hosts/petalburg/secrets.nix b/hosts/petalburg/secrets.nix deleted file mode 100644 index cc7459e1..00000000 --- a/hosts/petalburg/secrets.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - age.secrets = { - syncthingCert.file = ../../secrets/aly/syncthing/petalburg/cert.age; - syncthingKey.file = ../../secrets/aly/syncthing/petalburg/key.age; - }; -} diff --git a/hosts/petalburg/stylix.nix b/hosts/petalburg/stylix.nix deleted file mode 100644 index ed75aaf7..00000000 --- a/hosts/petalburg/stylix.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ - pkgs, - self, - ... -}: { - stylix = { - enable = true; - base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml"; - image = "${self.inputs.wallpapers}/wallhaven-3lyrvy.png"; - imageScalingMode = "fill"; - polarity = "dark"; - - cursor = { - name = "Adwaita"; - package = pkgs.adwaita-icon-theme; - size = 24; - }; - - fonts = { - monospace = { - name = "CaskaydiaCove Nerd Font"; - package = pkgs.nerd-fonts.caskaydia-cove; - }; - - sansSerif = { - name = "UbuntuSans Nerd Font"; - package = pkgs.nerd-fonts.ubuntu-sans; - }; - - serif = { - name = "Source Serif Pro"; - package = pkgs.source-serif-pro; - }; - - sizes = { - applications = 12; - desktop = 11; - popups = 12; - terminal = 13; - }; - }; - - opacity = { - applications = 1.0; - desktop = 0.8; - terminal = 0.8; - popups = 0.8; - }; - }; -}