1

System: Replace usage of "system" alias with "pkgs.stdenv.hostPlatform.system"

This commit is contained in:
2025-11-24 15:57:10 +01:00
parent a9c55ead9b
commit f28fdfabca
5 changed files with 32 additions and 30 deletions

View File

@ -57,7 +57,7 @@ in
extraPackages = with pkgs; [ extraPackages = with pkgs; [
papirus-icon-theme papirus-icon-theme
bibata-cursors bibata-cursors
inputs.waifu-cursors.packages.${pkgs.system}.all inputs.waifu-cursors.packages.${pkgs.stdenv.hostPlatform.system}.all
]; ];
cursor = "Bibata-Modern-Classic"; cursor = "Bibata-Modern-Classic";
@ -537,10 +537,10 @@ in
# Run unpatched binaries on NixOS # Run unpatched binaries on NixOS
# Sets NIX_LD_LIBRARY_PATH and NIX_LD variables for nix-ld. # Sets NIX_LD_LIBRARY_PATH and NIX_LD variables for nix-ld.
# Usage: "nix-alien-ld -- <Executable>". # Usage: "nix-alien-ld -- <Executable>".
inputs.nix-alien.packages.${system}.nix-alien inputs.nix-alien.packages.${pkgs.stdenv.hostPlatform.system}.nix-alien
# Search nixpkgs # Search nixpkgs
inputs.nps.packages.${system}.default inputs.nps.packages.${pkgs.stdenv.hostPlatform.system}.default
# Use NixCommunity binary cache # Use NixCommunity binary cache
cachix cachix
@ -854,7 +854,7 @@ in
nushell.enable = false; nushell.enable = false;
# spicetify = let # spicetify = let
# spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; # spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
# in { # in {
# enable = true; # enable = true;
# #

View File

@ -17,20 +17,20 @@ in {
# AGS libs go here # AGS libs go here
extraPackages = [ extraPackages = [
inputs.ags.packages.${pkgs.system}.apps inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.apps
inputs.ags.packages.${pkgs.system}.auth inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.auth
inputs.ags.packages.${pkgs.system}.battery inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.battery
inputs.ags.packages.${pkgs.system}.bluetooth inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.bluetooth
inputs.ags.packages.${pkgs.system}.cava inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.cava
# inputs.ags.packages.${pkgs.system}.greet # inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.greet
inputs.ags.packages.${pkgs.system}.hyprland inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
inputs.ags.packages.${pkgs.system}.mpris inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.mpris
inputs.ags.packages.${pkgs.system}.network inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.network
inputs.ags.packages.${pkgs.system}.notifd inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.notifd
# inputs.ags.packages.${pkgs.system}.powerprofiles # inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.powerprofiles
# inputs.ags.packages.${pkgs.system}.river # inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.river
inputs.ags.packages.${pkgs.system}.tray inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.tray
inputs.ags.packages.${pkgs.system}.wireplumber inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.wireplumber
]; ];
# This should symlink but doesn't, it copies the files :/ # This should symlink but doesn't, it copies the files :/
@ -40,7 +40,7 @@ in {
# The ags module doesn't expose the "astal" cli tool or extraPackages # The ags module doesn't expose the "astal" cli tool or extraPackages
home.packages = home.packages =
[ [
inputs.ags.packages.${pkgs.system}.io inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.io
] ]
++ config.programs.ags.extraPackages; ++ config.programs.ags.extraPackages;

View File

@ -12,9 +12,11 @@ in {
config = lib.mkIf docs.enable { config = lib.mkIf docs.enable {
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
texliveFull
inkscape inkscape
typst
texliveFull # TODO: LaTeX packages
typst # TODO: Typst packages
]; ];
file = { file = {

View File

@ -142,8 +142,8 @@ in {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
systemd.enable = true; # Enable hyprland-session.target systemd.enable = true; # Enable hyprland-session.target
systemd.variables = ["--all"]; # Import PATH into systemd systemd.variables = ["--all"]; # Import PATH into systemd
@ -152,16 +152,16 @@ in {
plugins = builtins.concatLists [ plugins = builtins.concatLists [
(lib.optionals (lib.optionals
hyprland.bars.enable hyprland.bars.enable
[inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars]) [inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars])
(lib.optionals (lib.optionals
hyprland.dynamicCursor.enable hyprland.dynamicCursor.enable
[inputs.hypr-dynamic-cursors.packages.${pkgs.system}.hypr-dynamic-cursors]) [inputs.hypr-dynamic-cursors.packages.${pkgs.stdenv.hostPlatform.system}.hypr-dynamic-cursors])
(lib.optionals (lib.optionals
hyprland.trails.enable hyprland.trails.enable
[inputs.hyprland-plugins.packages.${pkgs.system}.hyprtrails]) [inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails])
(lib.optionals (lib.optionals
hyprland.hyprspace.enable hyprland.hyprspace.enable
[inputs.hyprspace.packages.${pkgs.system}.Hyprspace]) [inputs.hyprspace.packages.${pkgs.stdenv.hostPlatform.system}.Hyprspace])
]; ];
settings = import ./settings.nix { settings = import ./settings.nix {

View File

@ -346,8 +346,8 @@ with mylib.networking; {
hyprland = { hyprland = {
enable = !headless; enable = !headless;
package = inputs.hyprland.packages.${system}.hyprland; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
xwayland.enable = true; xwayland.enable = true;
withUWSM = true; withUWSM = true;
@ -471,7 +471,7 @@ with mylib.networking; {
script = '' script = ''
set -eu set -eu
echo "Start refreshing nps cache..." echo "Start refreshing nps cache..."
${inputs.nps.packages.${system}.default}/bin/nps -dddd -e -r ${inputs.nps.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/nps -dddd -e -r
echo "... finished nps cache with exit code $?." echo "... finished nps cache with exit code $?."
''; '';
}; };