mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-25 12:33:56 +02:00
fix(home): replace deprecated stdenv.is* with hostPlatform.is*
This commit is contained in:
@@ -10,6 +10,6 @@
|
||||
# source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix
|
||||
programs.google-chrome = {
|
||||
enable = true;
|
||||
package = if pkgs.stdenv.isAarch64 then pkgs.chromium else pkgs.google-chrome;
|
||||
package = if pkgs.stdenv.hostPlatform.isAarch64 then pkgs.chromium else pkgs.google-chrome;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ in
|
||||
hunspellDicts.en_US # USA English
|
||||
hyphenDicts.en_GB # British English
|
||||
]
|
||||
++ (lib.optionals pkgs.stdenv.isx86_64 [
|
||||
++ (lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
|
||||
ldtk # A modern, versatile 2D level editor
|
||||
|
||||
# fpga
|
||||
@@ -63,7 +63,7 @@ in
|
||||
programs = {
|
||||
# live streaming
|
||||
obs-studio = {
|
||||
enable = pkgs.stdenv.isx86_64;
|
||||
enable = pkgs.stdenv.hostPlatform.isx86_64;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
# screen capture
|
||||
wlrobs
|
||||
|
||||
@@ -23,7 +23,7 @@ in
|
||||
pkgs.qt6Packages.qt6ct # for icon theme
|
||||
pkgs.app2unit # Launch Desktop Entries (or arbitrary commands) as Systemd user units
|
||||
]
|
||||
++ (lib.optionals pkgs.stdenv.isx86_64 [
|
||||
++ (lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
|
||||
pkgs.gpu-screen-recorder # recoding screen
|
||||
]);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
home.packages =
|
||||
with pkgs;
|
||||
(lib.optionals pkgs.stdenv.isx86_64 [
|
||||
(lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
|
||||
# https://joplinapp.org/help/
|
||||
joplin # joplin-cli
|
||||
# joplin-desktop
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"${pkgs.nixpaks.telegram-desktop}/share/applications/org.telegram.desktop.desktop"
|
||||
]
|
||||
++ (
|
||||
if pkgs.stdenv.isx86_64 then
|
||||
if pkgs.stdenv.hostPlatform.isx86_64 then
|
||||
[ "${pkgs.google-chrome}/share/applications/google-chrome.desktop" ]
|
||||
else
|
||||
[ "${pkgs.chromium}/share/applications/chromium-browser.desktop" ]
|
||||
|
||||
Reference in New Issue
Block a user