feat: add 'from' script to get real path of exe
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-07-28 01:44:16 -04:00
parent d823b36559
commit b09cceb259
5 changed files with 64 additions and 53 deletions

View file

@ -13,6 +13,7 @@
./vars ./vars
./modules ./modules
./packages.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
@ -80,15 +81,6 @@
environment.systemPackages = environment.systemPackages =
(with pkgs; [ (with pkgs; [
# File management
imagemagick
unzip
zip
unzip
p7zip
rar
unrar
# Peripherals # Peripherals
hdparm hdparm
pciutils pciutils

View file

@ -6,6 +6,5 @@
./neovim ./neovim
./nix-index ./nix-index
./tmux ./tmux
./packages.nix
]; ];
} }

View file

@ -6,6 +6,7 @@
imports = [ imports = [
./vars ./vars
./modules/global.nix ./modules/global.nix
./packages.nix
]; ];
nix = { nix = {

View file

@ -3,7 +3,7 @@
self, self,
... ...
}: { }: {
home.packages = environment.systemPackages =
(with self.packages.${pkgs.system}; [ (with self.packages.${pkgs.system}; [
pokemon-colorscripts pokemon-colorscripts
repl repl
@ -12,18 +12,45 @@
undollar undollar
]) ])
++ (with pkgs; [ ++ (with pkgs; [
alejandra
# Archiving
zip
unzip
p7zip
rar
bzip2
gzip
gnutar
xz
# File management
findutils
diffutils
utillinux
which
imagemagick
# Networking # Networking
dig.dnsutils dig.dnsutils
mosh
openssh openssh
rsync rsync
wget wget
gnupg
# Misc CLI stuff # Misc CLI stuff
killall killall
nix-output-monitor nix-output-monitor
progress progress
tree tree
gnugrep
gnused
# Expected Stuff
hostname
man
perl
tzdata
]) ])
++ [ ++ [
# This could help as well: nix derivation show -r /run/current-system # This could help as well: nix derivation show -r /run/current-system
@ -33,5 +60,20 @@
nix-store --query --requisites /run/current-system | cut -d- -f2- | sort -u nix-store --query --requisites /run/current-system | cut -d- -f2- | sort -u
''; '';
}) })
(pkgs.writeShellApplication {
name = "from";
runtimeInputs = with pkgs; [
coreutils
which
];
text = ''
for var do
realpath "$(which "$var")"
done
'';
})
]; ];
} }

View file

@ -18,30 +18,7 @@
]; ];
})}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf"; })}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
environment.packages = environment.packages = [
(with pkgs; [
diffutils
findutils
utillinux
tzdata
hostname
man
gnugrep
ripgrep
gnupg
gnused
gnutar
bzip2
gzip
xz
zip
unzip
openssh
perl
which
alejandra
])
++ [
(pkgs.writeShellApplication { (pkgs.writeShellApplication {
name = "switch"; name = "switch";
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [