mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-29 06:17:13 +02:00
fix(home): replace deprecated stdenv.is* with hostPlatform.is*
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
# which is broken (patch fails to apply) on the current nixpkgs pin
|
# which is broken (patch fails to apply) on the current nixpkgs pin
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|
||||||
clipboard.providers.wl-copy.enable = pkgs.stdenv.isLinux;
|
clipboard.providers.wl-copy.enable = pkgs.stdenv.hostPlatform.isLinux;
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
number = true;
|
number = true;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
programs.foot = {
|
programs.foot = {
|
||||||
# foot is designed only for Linux
|
# foot is designed only for Linux
|
||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.hostPlatform.isLinux;
|
||||||
|
|
||||||
# foot can also be run in a server mode. In this mode, one process hosts multiple windows.
|
# foot can also be run in a server mode. In this mode, one process hosts multiple windows.
|
||||||
# All Wayland communication, VT parsing and rendering is done in the server process.
|
# All Wayland communication, VT parsing and rendering is done in the server process.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
programs.ghostty = {
|
programs.ghostty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package =
|
package =
|
||||||
if pkgs.stdenv.isDarwin then
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||||
null # installed via Homebrew cask on darwin
|
null # installed via Homebrew cask on darwin
|
||||||
else
|
else
|
||||||
pkgs.ghostty;
|
pkgs.ghostty;
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
# source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix
|
# source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix
|
||||||
programs.google-chrome = {
|
programs.google-chrome = {
|
||||||
enable = true;
|
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
|
hunspellDicts.en_US # USA English
|
||||||
hyphenDicts.en_GB # British 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
|
ldtk # A modern, versatile 2D level editor
|
||||||
|
|
||||||
# fpga
|
# fpga
|
||||||
@@ -63,7 +63,7 @@ in
|
|||||||
programs = {
|
programs = {
|
||||||
# live streaming
|
# live streaming
|
||||||
obs-studio = {
|
obs-studio = {
|
||||||
enable = pkgs.stdenv.isx86_64;
|
enable = pkgs.stdenv.hostPlatform.isx86_64;
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
# screen capture
|
# screen capture
|
||||||
wlrobs
|
wlrobs
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ in
|
|||||||
pkgs.qt6Packages.qt6ct # for icon theme
|
pkgs.qt6Packages.qt6ct # for icon theme
|
||||||
pkgs.app2unit # Launch Desktop Entries (or arbitrary commands) as Systemd user units
|
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
|
pkgs.gpu-screen-recorder # recoding screen
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
home.packages =
|
home.packages =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
(lib.optionals pkgs.stdenv.isx86_64 [
|
(lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
|
||||||
# https://joplinapp.org/help/
|
# https://joplinapp.org/help/
|
||||||
joplin # joplin-cli
|
joplin # joplin-cli
|
||||||
# joplin-desktop
|
# joplin-desktop
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"${pkgs.nixpaks.telegram-desktop}/share/applications/org.telegram.desktop.desktop"
|
"${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" ]
|
[ "${pkgs.google-chrome}/share/applications/google-chrome.desktop" ]
|
||||||
else
|
else
|
||||||
[ "${pkgs.chromium}/share/applications/chromium-browser.desktop" ]
|
[ "${pkgs.chromium}/share/applications/chromium-browser.desktop" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user