From d6ef210d150f95cbb3d476800bbc80ce5f72d225 Mon Sep 17 00:00:00 2001 From: winston Date: Wed, 15 Feb 2023 21:45:28 +0100 Subject: [PATCH] refactor: inherit isDarwin & isLinux on the same line --- home.nix | 3 +-- modules/music.nix | 3 +-- modules/vscode.nix | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/home.nix b/home.nix index a4973fe..9c9589a 100644 --- a/home.nix +++ b/home.nix @@ -7,8 +7,7 @@ hyprland, ... }: let - inherit (pkgs.stdenv.hostPlatform) isLinux; - inherit (pkgs.stdenv.hostPlatform) isDarwin; + inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux; in { imports = [ diff --git a/modules/music.nix b/modules/music.nix index e972b45..4b81602 100644 --- a/modules/music.nix +++ b/modules/music.nix @@ -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; diff --git a/modules/vscode.nix b/modules/vscode.nix index d844eba..bf05e81 100644 --- a/modules/vscode.nix +++ b/modules/vscode.nix @@ -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;