This commit is contained in:
mjallen18
2025-10-22 19:10:44 -05:00
parent 6b6cf3eee1
commit ee486f52bb
15 changed files with 52 additions and 36 deletions

View File

@@ -1,11 +1,11 @@
mount -t tmpfs -o mode=755 none /mnt mount -t tmpfs -o mode=755 none /mnt
mkdir -p /mnt/{boot,home,root,etc,nix,var/log} mkdir -p /mnt/{boot,home,root,etc,nix,var/log}
mount /dev/sda1 /mnt/boot mount /dev/sdb1 /mnt/boot
mount /dev/sda3 -o compress=zstd,subvol=home /mnt/home mount /dev/sdb3 -o compress=zstd,subvol=home /mnt/home
mount /dev/sda3 -o compress=zstd,noatime,subvol=root /mnt/root mount /dev/sdb3 -o compress=zstd,noatime,subvol=root /mnt/root
mount /dev/sda3 -o compress=zstd,noatime,subvol=etc /mnt/etc mount /dev/sdb3 -o compress=zstd,noatime,subvol=etc /mnt/etc
mount /dev/sda3 -o compress=zstd,noatime,subvol=nix /mnt/nix mount /dev/sdb3 -o compress=zstd,noatime,subvol=nix /mnt/nix
mount /dev/sda3 -o compress=zstd,noatime,subvol=log /mnt/var/log mount /dev/sdb3 -o compress=zstd,noatime,subvol=log /mnt/var/log
wpa_passphrase "Joey's Jungle 5G" "kR8v&3Qd" > 5g.conf wpa_passphrase "Joey's Jungle 5G" "kR8v&3Qd" > 5g.conf
wpa_supplicant -i wlp6s0 -c 5g.conf -B wpa_supplicant -i wlp6s0 -c 5g.conf -B

View File

@@ -31,6 +31,7 @@ in
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
primaryDisplay = "eDP-1"; primaryDisplay = "eDP-1";
display1 = display;
wallpaper = [ wallpaper = [
"${display.input}, /run/wallpaper.jpg" "${display.input}, /run/wallpaper.jpg"

View File

@@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
hasDestopEnvironment,
... ...
}: }:
{ {
@@ -10,17 +11,10 @@
homeDirectory = lib.mkDefault "/home/${config.home.username}"; homeDirectory = lib.mkDefault "/home/${config.home.username}";
packages = with pkgs; [ packages = with pkgs; [
age age
chromium
clinfo clinfo
cpufetch cpufetch
deadnix deadnix
firefox
gamescope
gamescope-wsi
goverlay
gparted
lm_sensors lm_sensors
mission-center
nano nano
nixfmt-rfc-style nixfmt-rfc-style
pciutils pciutils
@@ -31,11 +25,19 @@
tailscale tailscale
tree tree
usbutils usbutils
vesktop
vim vim
vulkan-tools vulkan-tools
wget wget
]; ] ++ (if hasDestopEnvironment then [
chromium
firefox
gamescope
gamescope-wsi
gparted
goverlay
mission-center
vesktop
] else [ ]);
stateVersion = lib.mkDefault "23.11"; stateVersion = lib.mkDefault "23.11";
}; };
@@ -47,7 +49,7 @@
java = { java = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
}; };
mangohud.enable = lib.mkDefault true; mangohud.enable = lib.mkDefault hasDestopEnvironment;
password-store.enable = true; password-store.enable = true;
nh = { nh = {
enable = true; enable = true;
@@ -110,10 +112,10 @@
}; };
services = { services = {
nextcloud-client.enable = lib.mkDefault true; nextcloud-client.enable = lib.mkDefault hasDestopEnvironment;
pass-secret-service.enable = lib.mkDefault true; pass-secret-service.enable = lib.mkDefault true;
kdeconnect = { kdeconnect = {
enable = lib.mkDefault true; enable = lib.mkDefault hasDestopEnvironment;
indicator = lib.mkDefault true; indicator = lib.mkDefault true;
}; };
}; };

View File

@@ -3,10 +3,12 @@
pkgs, pkgs,
system, system,
namespace, namespace,
hasDestopEnvironment,
... ...
}: }:
let let
isArm = ("aarch64-linux" == system) || ("aarch64-darwin" == system); isArm = ("aarch64-linux" == system) || ("aarch64-darwin" == system);
x86_only = with pkgs; [ x86_only = with pkgs; [
vscode-extensions.redhat.vscode-xml vscode-extensions.redhat.vscode-xml
]; ];
@@ -20,7 +22,7 @@ in
programs = { programs = {
vscode = { vscode = {
enable = true; enable = hasDestopEnvironment;
package = pkgs.vscodium; package = pkgs.vscodium;
mutableExtensionsDir = false; mutableExtensionsDir = false;
profiles = { profiles = {

View File

@@ -116,8 +116,8 @@ in
settings = { settings = {
preload = [ "/run/wallpaper.jpg" ]; preload = [ "/run/wallpaper.jpg" ];
wallpaper = [ wallpaper = [
"DP-1, /run/wallpaper.jpg" "${cfg.display1.input}, /run/wallpaper.jpg"
"DP-2, /run/wallpaper.jpg" "${cfg.display2.input}, /run/wallpaper.jpg"
]; ];
splash = false; splash = false;
}; };
@@ -183,7 +183,7 @@ in
{ {
size = "200, 50"; size = "200, 50";
position = "0, -80"; position = "0, -80";
monitor = "DP-1"; monitor = cfg.primaryDisplay;
dots_center = true; dots_center = true;
fade_on_empty = true; fade_on_empty = true;
font_color = "rgb(202, 211, 245)"; font_color = "rgb(202, 211, 245)";

View File

@@ -1,10 +1,10 @@
{ lib, system, ... }: { lib, system, hasDestopEnvironment, ... }:
let let
isArm = builtins.match "aarch64*" system != null; isArm = builtins.match "aarch64*" system != null;
in in
{ {
programs.onlyoffice = { programs.onlyoffice = {
enable = lib.mkDefault (!isArm); enable = lib.mkDefault (!isArm && hasDestopEnvironment);
settings = { settings = {
UITheme = "theme-contrast-dark"; UITheme = "theme-contrast-dark";
forcedRtl = false; forcedRtl = false;

View File

@@ -9,6 +9,7 @@
}: }:
let let
isArm = ("aarch64-linux" == system) || ("aarch64-darwin" == system); isArm = ("aarch64-linux" == system) || ("aarch64-darwin" == system);
hasDestopEnvironment = config.${namespace}.desktop.cosmic.enable || config.${namespace}.desktop.gnome.enable || config.${namespace}.desktop.hyprland.enable;
in in
{ {
@@ -47,7 +48,7 @@ in
# Pass inputs so external modules can access them # Pass inputs so external modules can access them
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs namespace; inherit inputs namespace hasDestopEnvironment;
overlays = with inputs; [ overlays = with inputs; [
nix-vscode-extensions.overlays.default nix-vscode-extensions.overlays.default
]; ];

View File

@@ -1,4 +1,7 @@
{ pkgs, lib, ... }: { config, pkgs, lib, namespace, ... }:
let
hasDestopEnvironment = config.${namespace}.desktop.cosmic.enable || config.${namespace}.desktop.gnome.enable || config.${namespace}.desktop.hyprland.enable;
in
{ {
programs = { programs = {
zsh.enable = lib.mkDefault true; zsh.enable = lib.mkDefault true;
@@ -13,7 +16,7 @@
}; };
nix-ld = { nix-ld = {
enable = lib.mkDefault true; enable = lib.mkDefault hasDestopEnvironment;
libraries = with pkgs; [ libraries = with pkgs; [
alsa-lib alsa-lib
bash bash
@@ -62,7 +65,7 @@
libgbm libgbm
]; ];
}; };
seahorse.enable = lib.mkDefault true; seahorse.enable = lib.mkDefault hasDestopEnvironment;
}; };
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [

View File

@@ -4,14 +4,15 @@ final: prev: {
open-webui = inputs.nixpkgs-stable.legacyPackages.${prev.system}.open-webui; open-webui = inputs.nixpkgs-stable.legacyPackages.${prev.system}.open-webui;
nextcloud-client = inputs.nixpkgs-stable.legacyPackages.${prev.system}.nextcloud-client; nextcloud-client = inputs.nixpkgs-stable.legacyPackages.${prev.system}.nextcloud-client;
calibre = inputs.nixpkgs-stable.legacyPackages.${prev.system}.calibre; calibre = inputs.nixpkgs-stable.legacyPackages.${prev.system}.calibre;
# immich-machine-learning = inputs.nixpkgs-stable.legacyPackages.${prev.system}.immich-machine-learning; hyprland-qtutils = inputs.nixpkgs-stable.legacyPackages.${prev.system}.hyprland-qtutils;
dolphin-emu = inputs.nixpkgs-stable.legacyPackages.${prev.system}.dolphin-emu; dolphin-emu = inputs.nixpkgs-stable.legacyPackages.${prev.system}.dolphin-emu;
pcsx2 = inputs.nixpkgs-stable.legacyPackages.${prev.system}.pcsx2; pcsx2 = inputs.nixpkgs-stable.legacyPackages.${prev.system}.pcsx2;
# fex = inputs.nixpkgs-stable.legacyPackages.${prev.system}.fex; fex = inputs.nixpkgs-stable.legacyPackages.${prev.system}.fex;
# gjs = inputs.nixpkgs-stable.legacyPackages.${prev.system}.gjs; # gjs = inputs.nixpkgs-stable.legacyPackages.${prev.system}.gjs;
# libsecret = inputs.nixpkgs-stable.legacyPackages.${prev.system}.libsecret; # libsecret = inputs.nixpkgs-stable.legacyPackages.${prev.system}.libsecret;
# electron = inputs.nixpkgs-stable.legacyPackages.${prev.system}.electron; # electron = inputs.nixpkgs-stable.legacyPackages.${prev.system}.electron;
# sdl3 = inputs.nixpkgs-stable.legacyPackages.${prev.system}.sdl3; lsp-plugins = inputs.nixpkgs-stable.legacyPackages.${prev.system}.lsp-plugins;
hyprsysteminfo = inputs.nixpkgs-stable.legacyPackages.${prev.system}.hyprsysteminfo;
} }

1
result-pi5 Symbolic link
View File

@@ -0,0 +1 @@
/nix/store/mxa3zhj368qr5kx0xjazhcshknplax39-nixos-system-pi5-6.12.44-unstable_20250829-kernelboot-raspberry-pi-5-25.11.20251021.dacb109

View File

@@ -42,7 +42,7 @@
desktop = { desktop = {
hyprland = { hyprland = {
enable = true; enable = true;
wallpaperSource = "nasa"; wallpaperSource = "bing";
}; };
gnome.enable = false; gnome.enable = false;
}; };

View File

@@ -2,7 +2,7 @@
{ {
services = { services = {
auto-cpufreq = { auto-cpufreq = {
enable = true; enable = false;
settings = { settings = {
# settings for when connected to a power source # settings for when connected to a power source
charger = { charger = {
@@ -17,7 +17,7 @@
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html # see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly # to use this feature, uncomment the following line and set the value accordingly
scaling_min_freq = 912000; scaling_min_freq = 912000;
scaling_max_freq = 2424000; scaling_max_freq = 3500000;
# scaling_min_freq = 702000; # scaling_min_freq = 702000;
# scaling_max_freq = 1968000; # scaling_max_freq = 1968000;
@@ -37,7 +37,7 @@
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html # see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly # to use this feature, uncomment the following line and set the value accordingly
scaling_min_freq = 912000; scaling_min_freq = 912000;
scaling_max_freq = 2004000; scaling_max_freq = 2424000;
# turbo boost setting (always, auto, or never) # turbo boost setting (always, auto, or never)
turbo = "auto"; turbo = "auto";

View File

@@ -1,5 +1,6 @@
{ {
pkgs, pkgs,
lib,
... ...
}: }:
let let
@@ -12,6 +13,7 @@ in
variant = "4"; variant = "4";
}; };
kernelPackages = kernelBundle.linuxPackages_rpi4; kernelPackages = kernelBundle.linuxPackages_rpi4;
supportedFilesystems = lib.mkForce [ ];
}; };
hardware.raspberry-pi.config = { hardware.raspberry-pi.config = {

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
let let
kernelBundle = pkgs.linuxAndFirmware.latest; kernelBundle = pkgs.linuxAndFirmware.latest;
in in
@@ -6,6 +6,7 @@ in
boot = { boot = {
loader.raspberry-pi.firmwarePackage = kernelBundle.raspberrypifw; loader.raspberry-pi.firmwarePackage = kernelBundle.raspberrypifw;
kernelPackages = kernelBundle.linuxPackages_rpi5; kernelPackages = kernelBundle.linuxPackages_rpi5;
supportedFilesystems = lib.mkForce [ ];
}; };
hardware.raspberry-pi.config = { hardware.raspberry-pi.config = {

View File

@@ -99,4 +99,6 @@
"nofail" "nofail"
]; ];
}; };
programs.seahorse.enable = false;
} }