refactor: inherit isDarwin & isLinux on the same line
This commit is contained in:
parent
35ecf9d714
commit
d6ef210d15
3 changed files with 3 additions and 6 deletions
3
home.nix
3
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 =
|
||||
[
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue