From 1fc09ed6b56e98261ce301a93b92b14ecc5744b3 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Fri, 7 Feb 2025 13:07:41 -0800 Subject: [PATCH] more shit --- nix-darwin/configuration.nix | 23 ----------------------- nix-darwin/home.nix | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/nix-darwin/configuration.nix b/nix-darwin/configuration.nix index 3feec9a..994fe2f 100644 --- a/nix-darwin/configuration.nix +++ b/nix-darwin/configuration.nix @@ -4,30 +4,7 @@ # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = with pkgs; [ - # Programs - slack - zathura - irssi - spotify - discord - gimp - vscode - gtkwave - gephi - - # Utils - coreutils # *happy rms noises* git - stow - curl - wget - ffmpeg - gnupg - jq - # tmux - htop - ripgrep - sshfs ]; # Necessary for using flakes on this system. diff --git a/nix-darwin/home.nix b/nix-darwin/home.nix index f8321eb..b27eb7e 100644 --- a/nix-darwin/home.nix +++ b/nix-darwin/home.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { # Home Manager needs a bit of information about you and the paths it should @@ -41,6 +41,28 @@ # '') # Programs + slack + zathura + irssi + spotify + discord + gimp + vscode + gtkwave + gephi + + # Utils + coreutils # *happy rms noises* + stow + curl + wget + ffmpeg + gnupg + jq + # tmux + htop + ripgrep + sshfs libqalculate imagemagick figlet @@ -143,6 +165,17 @@ LIBTORCH = "${pkgs.libtorch-bin}/lib"; }; + # Link apps to ~/Applications/Nix + home.activation = { + linkApps = lib.hm.dag.entryAfter [ "checkLinkTargets" ] '' + mkdir -p ~/Applications/Nix + for app in ~/.nix-profile/Applications/*.app; do + ln -sf "$app" ~/Applications/Nix/ + done + ''; + }; + + # Let Home Manager install and manage itself. programs.home-manager.enable = true;