refactor: inherit isDarwin & isLinux on the same line

This commit is contained in:
winston 2023-02-15 21:45:28 +01:00
parent 35ecf9d714
commit d6ef210d15
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 3 additions and 6 deletions

View file

@ -7,8 +7,7 @@
hyprland,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isLinux;
inherit (pkgs.stdenv.hostPlatform) isDarwin;
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
in {
imports =
[

View file

@ -4,8 +4,7 @@
pkgs,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin;
inherit (pkgs.stdenv.hostPlatform) isLinux;
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
in {
programs.ncmpcpp = {
enable = isLinux;

View file

@ -5,8 +5,7 @@
pkgs,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isLinux;
inherit (pkgs.stdenv.hostPlatform) isDarwin;
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
in {
programs.vscode = {
enable = true;