NixOS on WSL updates

This commit is contained in:
Greg Hellings
2022-12-24 00:36:36 -06:00
parent 75b1f637a0
commit 50238c7fba
9 changed files with 124 additions and 87 deletions
+13 -5
View File
@@ -1,10 +1,18 @@
{ pkgs, lib, ... }:
{
home.packages = with pkgs; ( if ( lib.hasSuffix "-darwin" pkgs.system) then
[] else
[
let
darwinPkgs = [];
x86Pkgs = with pkgs; [
element-desktop
slack
]);
];
archPkgs = with pkgs; [
element-desktop
];
in {
home.packages = ( if ( pkgs.stdenv.hostPlatform.isDarwin ) then darwinPkgs else
( if ( lib.hasPrefix "aarch64" pkgs.system ) then archPkgs else
( if ( lib.hasPrefix "x86_64" pkgs.system ) then x86Pkgs else [] )
)
);
}