flake, hosts: drop petalburg

This commit is contained in:
Aly Raffauf 2024-10-15 20:11:19 -04:00
parent 6d73638db9
commit f22968851b
6 changed files with 0 additions and 238 deletions

View file

@ -100,7 +100,6 @@
"lavaridge"
"mauville"
"pacifidlog"
"petalburg"
"rustboro"
"slateport"
];

View file

@ -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.

View file

@ -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;
};
};
};
}

View file

@ -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;
};
}

View file

@ -1,6 +0,0 @@
{
age.secrets = {
syncthingCert.file = ../../secrets/aly/syncthing/petalburg/cert.age;
syncthingKey.file = ../../secrets/aly/syncthing/petalburg/key.age;
};
}

View file

@ -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;
};
};
}