mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-22 06:32:55 -05:00
tree-wide: drop petalburg
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-build / aly_petalburg-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-build / aly_petalburg-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
33e8f27b11
commit
5d9d0cb077
16
.github/workflows/nix-build.yml
vendored
16
.github/workflows/nix-build.yml
vendored
|
@ -83,22 +83,6 @@ jobs:
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- name: Build mauville
|
- name: Build mauville
|
||||||
run: nix build --accept-flake-config .#nixosConfigurations.mauville.config.system.build.toplevel
|
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:
|
rustboro-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -98,7 +98,6 @@
|
||||||
"fallarbor"
|
"fallarbor"
|
||||||
"lavaridge"
|
"lavaridge"
|
||||||
"mauville"
|
"mauville"
|
||||||
"petalburg"
|
|
||||||
"rustboro"
|
"rustboro"
|
||||||
"slateport"
|
"slateport"
|
||||||
];
|
];
|
||||||
|
|
|
@ -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.
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
age.secrets = {
|
|
||||||
syncthingCert.file = ../../secrets/aly/syncthing/petalburg/cert.age;
|
|
||||||
syncthingKey.file = ../../secrets/aly/syncthing/petalburg/key.age;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue