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

View file

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

View file

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

View file

@ -3,7 +3,7 @@
self,
...
}: {
home.packages =
environment.systemPackages =
(with self.packages.${pkgs.system}; [
pokemon-colorscripts
repl
@ -12,18 +12,45 @@
undollar
])
++ (with pkgs; [
alejandra
# Archiving
zip
unzip
p7zip
rar
bzip2
gzip
gnutar
xz
# File management
findutils
diffutils
utillinux
which
imagemagick
# Networking
dig.dnsutils
mosh
openssh
rsync
wget
gnupg
# Misc CLI stuff
killall
nix-output-monitor
progress
tree
gnugrep
gnused
# Expected Stuff
hostname
man
perl
tzdata
])
++ [
# 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
'';
})
(pkgs.writeShellApplication {
name = "from";
runtimeInputs = with pkgs; [
coreutils
which
];
text = ''
for var do
realpath "$(which "$var")"
done
'';
})
];
}

View file

@ -18,47 +18,24 @@
];
})}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
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 {
name = "switch";
runtimeInputs = with pkgs; [
nix-output-monitor
];
text = ''
exec nix-on-droid ${lib.concatStringsSep " " [
"switch"
"--flake ${config.environment.variables.FLAKE}"
"--builders ssh-ng://matt@100.64.0.7"
''"$@"''
"|&"
"nom"
]}
'';
})
];
environment.packages = [
(pkgs.writeShellApplication {
name = "switch";
runtimeInputs = with pkgs; [
nix-output-monitor
];
text = ''
exec nix-on-droid ${lib.concatStringsSep " " [
"switch"
"--flake ${config.environment.variables.FLAKE}"
"--builders ssh-ng://matt@100.64.0.7"
''"$@"''
"|&"
"nom"
]}
'';
})
];
environment.etcBackupExtension = ".bak";
environment.motd = null;