Migrate some packages from brew to nix

work
mat ess 2022-04-20 21:26:30 -04:00
parent 20c07d46b0
commit 3a5173afa8
6 changed files with 36 additions and 31 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
imports = [ imports = [
@ -11,15 +11,20 @@
# `home-manager` currently has issues adding them to `~/Applications` # `home-manager` currently has issues adding them to `~/Applications`
# Issue: https://github.com/nix-community/home-manager/issues/1341 # Issue: https://github.com/nix-community/home-manager/issues/1341
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# codium discord-ptb
# discord element-desktop
# element-desktop # firefox *
# firefox jitsi-meet
kitty kitty
# lagrange lagrange
# signal-desktop # mullvad-vpn *
# steam obsidian
# signal-desktop *
slack
# steam *
terminal-notifier terminal-notifier
# zoom-us *
# *no nixpkgs darwin support T.T
]; ];
# https://github.com/nix-community/home-manager/issues/423 # https://github.com/nix-community/home-manager/issues/423

View File

@ -52,22 +52,15 @@ in
homebrew.casks = [ homebrew.casks = [
"aerial" "aerial"
"alfred" "alfred"
"discord"
"element"
"firefox" "firefox"
"gog-galaxy" "gog-galaxy"
"jitsi-meet"
"knockknock" "knockknock"
"lagrange"
"lulu" "lulu"
"mullvadvpn" "mullvadvpn"
"obsidian"
"rectangle" "rectangle"
"signal" "signal"
"slack"
"steam" "steam"
"twitch" "twitch"
"vscodium"
"zoom" "zoom"
]; ];

View File

@ -26,16 +26,14 @@
# Configuration for `nixpkgs` # Configuration for `nixpkgs`
nixpkgsConfig = { nixpkgsConfig = {
config = { allowUnfree = true; }; config = { allowUnfree = true; };
overlays = attrValues self.overlays; # overlays = attrValues self.overlays;
# overlays = attrValues self.overlays ++ singleton ( overlays = attrValues self.overlays ++ singleton (
# # Sub in x86 version of packages that don't build on Apple Silicon yet # Sub in x86 version of packages that don't build on Apple Silicon yet
# final: prev: (optionalAttrs (prev.stdenv.system == "aarch64-darwin") { final: prev: (optionalAttrs (prev.stdenv.system == "aarch64-darwin") {
# inherit (final.pkgs-x86) inherit (final.pkgs-x86)
# idris2 vscodium;
# nix-index })
# purescript; );
# })
# );
}; };
# Shared home-manager configs # Shared home-manager configs

View File

@ -1,9 +1,12 @@
{ pkgs, lib, ... }: # adapted from
# https://github.com/reckenrode/nixos-configs/blob/2acd7b0699fd57628deb7b8855b4d5f0ea8f8cb1/common/darwin/home-manager/copyApplications.nix
{ config, pkgs, lib, ... }:
{ {
home.activation = { home.activation = lib.optionalAttrs pkgs.stdenv.isDarwin {
copyApplications = lib.hm.dag.entryAfter [ "writeBoundary" ] '' copyApplications = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
appsSrc="$newGenPath/home-path/Applications/" appsSrc="${config.home.homeDirectory}/Applications/Nix Apps/"
if [ -d "$appsSrc" ]; then if [ -d "$appsSrc" ]; then
baseDir="$HOME/Applications/Home Manager Apps" baseDir="$HOME/Applications/Home Manager Apps"
rsyncArgs="--archive --checksum --chmod=-w --copy-unsafe-links --delete" rsyncArgs="--archive --checksum --chmod=-w --copy-unsafe-links --delete"

View File

@ -7,6 +7,7 @@
./kitty.nix ./kitty.nix
./neovim.nix ./neovim.nix
./shells.nix ./shells.nix
./copyApplications.nix
]; ];
home.enableNixpkgsReleaseCheck = true; home.enableNixpkgsReleaseCheck = true;
@ -62,6 +63,11 @@
set-bat-colors set-bat-colors
''; '';
}; };
# vscode
vscode = {
enable = true;
package = pkgs.vscodium;
};
}; };
# }}} # }}}
@ -117,8 +123,8 @@
home.file.".pijulconfig".text = '' home.file.".pijulconfig".text = ''
[author] [author]
name = "mat" name = "mat"
full_name = "mat ess" full_name = "${config.programs.git.userName}"
email = "mat@mat.services" email = "${config.programs.git.userEmail}"
''; '';
# https://docs.haskellstack.org/en/stable/yaml_configuration/#non-project-specific-config # https://docs.haskellstack.org/en/stable/yaml_configuration/#non-project-specific-config

View File

@ -140,7 +140,7 @@
nd = "nix develop"; nd = "nix develop";
nf = "nix flake"; nf = "nix flake";
nr = "nix run"; nr = "nix run";
ns = "nix search"; ns = "nix search nixpkgs";
# Other # Other
".." = "cd .."; ".." = "cd ..";