From f22968851b1d8dded1dce927586bdea68ed3b7bd Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 15 Oct 2024 20:11:19 -0400 Subject: [PATCH] flake, hosts: drop petalburg --- flake.nix | 1 - hosts/petalburg/README.md | 25 ---------- hosts/petalburg/default.nix | 94 ------------------------------------- hosts/petalburg/home.nix | 62 ------------------------ hosts/petalburg/secrets.nix | 6 --- hosts/petalburg/stylix.nix | 50 -------------------- 6 files changed, 238 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/flake.nix b/flake.nix index 4a3a7a79..3cd05dbd 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,6 @@ "lavaridge" "mauville" "pacifidlog" - "petalburg" "rustboro" "slateport" ]; diff --git a/hosts/petalburg/README.md b/hosts/petalburg/README.md deleted file mode 100644 index 4d416f87..00000000 --- a/hosts/petalburg/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# petalburg - -## Overview - -Lenovo Yoga 9i 2023. Secondary convertible mainly used for media, light dev work, and anything that might use a stylus or touch screen. - -## Specs - -| Model | Lenovo Yoga 9i Gen 8 | -|---------|----------------------------------------| -| Display | 14" 2880x1800 90hz OLED | -| CPU | Intel Core i7-1360P | -| RAM | 16GB (8GBx2) LPDDR5-5200Mhz (soldered) | -| GPU | Intel Iris Xe Graphics | -| Disks | 512GB M.2 PCIe 4.0 | - -## Filesystems - -### / - -Encrypted LUKS btrfs volume. - -## Display - -Scales perfectly at 2x. diff --git a/hosts/petalburg/default.nix b/hosts/petalburg/default.nix deleted file mode 100644 index 5306986c..00000000 --- a/hosts/petalburg/default.nix +++ /dev/null @@ -1,94 +0,0 @@ -# Lenovo Yoga 9i Convertible with Intel Core i7-1360P, 16GB RAM, 512GB SSD. -{ - config, - lib, - 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-overlays - self.nixosModules.common-pkgs - self.nixosModules.common-tailscale - self.nixosModules.common-wifi-profiles - self.nixosModules.hw-lenovo-yoga-9i-intel-13th - ]; - - boot = { - initrd.systemd.enable = true; - extraModulePackages = with config.boot.kernelPackages; [acpi_call]; - - lanzaboote = { - enable = true; - pkiBundle = "/etc/secureboot"; - }; - - loader = { - efi.canTouchEfiVariables = true; - systemd-boot.enable = lib.mkForce false; - }; - }; - - environment.variables.GDK_SCALE = "2"; - networking.hostName = "petalburg"; - - nixpkgs.overlays = [ - (final: prev: { - brave = prev.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";}; - - obsidian = prev.obsidian.overrideAttrs (old: { - installPhase = - builtins.replaceStrings ["--ozone-platform=wayland"] - ["--ozone-platform=wayland --enable-wayland-ime"] - old.installPhase; - }); - - vscodium = prev.vscodium.override {commandLineArgs = "--enable-wayland-ime";}; - - webcord = prev.webcord.overrideAttrs (old: { - installPhase = - builtins.replaceStrings ["--ozone-platform-hint=auto"] - ["--ozone-platform-hint=auto --enable-wayland-ime"] - old.installPhase; - }); - }) - ]; - - system.stateVersion = "24.05"; - - ar = { - apps = { - firefox.enable = true; - podman.enable = true; - steam.enable = true; - }; - - desktop = { - greetd.enable = true; - hyprland.enable = true; - sway.enable = true; - }; - - laptopMode = true; - - services.flatpak.enable = true; - - users.aly = { - enable = true; - password = "$y$j9T$TitXX3J690cnK41XciNMg/$APKHM/os6FKd9H9aXGxaHaQ8zP5SenO9EO94VYafl43"; - syncthing = { - enable = true; - certFile = config.age.secrets.syncthingCert.path; - keyFile = config.age.secrets.syncthingKey.path; - }; - }; - }; -} diff --git a/hosts/petalburg/home.nix b/hosts/petalburg/home.nix deleted file mode 100644 index 6f44a188..00000000 --- a/hosts/petalburg/home.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ - lib, - pkgs, - self, - ... -}: { - home-manager = { - sharedModules = [ - { - wayland.windowManager = { - hyprland.settings = { - bind = [ - ",xf86launch2,exec,${lib.getExe pkgs.playerctl} play-pause" - ]; - - exec-once = [''${ - lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default - } "desc:Samsung Display Corp. 0x4152"'']; - - input = { - tablet.output = "eDP-1"; - touchdevice.output = "eDP-1"; - }; - }; - - sway.config = { - input = { - "1386:21186:Wacom_HID_52C2_Finger" = { - map_to_output = "'Samsung Display Corp. 0x4152 Unknown'"; - }; - - "1386:21186:Wacom_HID_52C2_Pen" = { - map_to_output = "'Samsung Display Corp. 0x4152 Unknown'"; - }; - }; - - keybindings = { - "XF86Launch2" = "exec ${lib.getExe pkgs.playerctl} play-pause"; - }; - - output = {"Samsung Display Corp. 0x4152 Unknown".scale = "2.0";}; - }; - }; - - ar.home = { - desktop.hyprland = { - laptopMonitors = ["desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0"]; - - tabletMode = { - enable = true; - switches = ["Lenovo Yoga Tablet Mode Control switch"]; - }; - }; - - services.gammastep.enable = true; - }; - } - ]; - - 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 61bedf74..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 = "Bibata-Modern-Classic"; - package = pkgs.bibata-cursors; - size = 24; - }; - - fonts = { - monospace = { - name = "CaskaydiaCove Nerd Font"; - package = pkgs.nerdfonts.override {fonts = ["CascadiaCode"];}; - }; - - sansSerif = { - name = "UbuntuSans Nerd Font"; - package = pkgs.nerdfonts.override {fonts = ["UbuntuSans"];}; - }; - - serif = { - name = "Source Serif Pro"; - package = pkgs.source-serif-pro; - }; - - sizes = { - applications = 11; - desktop = 10; - popups = 11; - terminal = 12; - }; - }; - - opacity = { - applications = 1.0; - desktop = 0.8; - terminal = 0.8; - popups = 0.8; - }; - }; -}