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

View File

@ -17,20 +17,20 @@ in {
# AGS libs go here
extraPackages = [
inputs.ags.packages.${pkgs.system}.apps
inputs.ags.packages.${pkgs.system}.auth
inputs.ags.packages.${pkgs.system}.battery
inputs.ags.packages.${pkgs.system}.bluetooth
inputs.ags.packages.${pkgs.system}.cava
# inputs.ags.packages.${pkgs.system}.greet
inputs.ags.packages.${pkgs.system}.hyprland
inputs.ags.packages.${pkgs.system}.mpris
inputs.ags.packages.${pkgs.system}.network
inputs.ags.packages.${pkgs.system}.notifd
# inputs.ags.packages.${pkgs.system}.powerprofiles
# inputs.ags.packages.${pkgs.system}.river
inputs.ags.packages.${pkgs.system}.tray
inputs.ags.packages.${pkgs.system}.wireplumber
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.apps
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.auth
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.battery
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.bluetooth
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.cava
# inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.greet
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.mpris
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.network
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.notifd
# inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.powerprofiles
# inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.river
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.tray
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.wireplumber
];
# 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
home.packages =
[
inputs.ags.packages.${pkgs.system}.io
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.io
]
++ config.programs.ags.extraPackages;

View File

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

View File

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