added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
9
nyx/homes/notashelf/packages/cli/default.nix
Normal file
9
nyx/homes/notashelf/packages/cli/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [
|
||||
./shared.nix
|
||||
./desktop.nix
|
||||
./wayland.nix
|
||||
./whitehat.nix
|
||||
./server.nix
|
||||
];
|
||||
}
|
29
nyx/homes/notashelf/packages/cli/desktop.nix
Normal file
29
nyx/homes/notashelf/packages/cli/desktop.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
prg = modules.system.programs;
|
||||
dev = modules.device;
|
||||
acceptedTypes = ["desktop" "laptop" "lite" "hybrid"];
|
||||
in {
|
||||
config = mkIf ((builtins.elem dev.type acceptedTypes) && prg.cli.enable) {
|
||||
home.packages = with pkgs; [
|
||||
# CLI
|
||||
libnotify
|
||||
imagemagick
|
||||
gcc
|
||||
cmake
|
||||
bitwarden-cli
|
||||
trash-cli
|
||||
slides
|
||||
brightnessctl
|
||||
tesseract5
|
||||
pamixer
|
||||
];
|
||||
};
|
||||
}
|
18
nyx/homes/notashelf/packages/cli/server.nix
Normal file
18
nyx/homes/notashelf/packages/cli/server.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
prg = modules.system.programs;
|
||||
dev = modules.device;
|
||||
in {
|
||||
config = mkIf (prg.cli.enable && (builtins.elem dev.type ["server" "hybrid"])) {
|
||||
home.packages = with pkgs; [
|
||||
wireguard-tools
|
||||
];
|
||||
};
|
||||
}
|
40
nyx/homes/notashelf/packages/cli/shared.nix
Normal file
40
nyx/homes/notashelf/packages/cli/shared.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs',
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
prg = modules.system.programs;
|
||||
in {
|
||||
config = mkIf prg.cli.enable {
|
||||
home.packages = with pkgs; [
|
||||
# packages from inputs
|
||||
inputs'.agenix.packages.default
|
||||
inputs'.nyxpkgs.packages.cloneit
|
||||
|
||||
# CLI packages from nixpkgs
|
||||
catimg
|
||||
duf
|
||||
todo
|
||||
hyperfine
|
||||
fzf
|
||||
file
|
||||
unzip
|
||||
ripgrep
|
||||
rsync
|
||||
fd
|
||||
jq
|
||||
figlet
|
||||
lm_sensors
|
||||
dconf
|
||||
nitch
|
||||
skim
|
||||
p7zip
|
||||
btop
|
||||
];
|
||||
};
|
||||
}
|
50
nyx/homes/notashelf/packages/cli/wayland.nix
Normal file
50
nyx/homes/notashelf/packages/cli/wayland.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
dev = osConfig.modules.device;
|
||||
env = osConfig.modules.usrEnv;
|
||||
acceptedTypes = ["laptop" "desktop" "hybrid" "lite"];
|
||||
in {
|
||||
config = mkIf ((builtins.elem dev.type acceptedTypes) && env.isWayland) {
|
||||
home.packages = with pkgs; [
|
||||
# CLI
|
||||
grim
|
||||
slurp
|
||||
grim
|
||||
wl-clipboard
|
||||
pngquant
|
||||
wf-recorder
|
||||
(pkgs.writeShellApplication {
|
||||
name = "ocr";
|
||||
runtimeInputs = with pkgs; [tesseract grim slurp];
|
||||
text = ''
|
||||
set -x
|
||||
|
||||
echo "Generating a random ID..."
|
||||
id=$(tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w 6 | head -n 1 || true)
|
||||
echo "Image ID: $id"
|
||||
|
||||
echo "Taking screenshot..."
|
||||
grim -g "$(slurp -w 0 -b eebebed2)" /tmp/ocr-"$id".png
|
||||
|
||||
echo "Running OCR..."
|
||||
tesseract /tmp/ocr-"$id".png - | wl-copy
|
||||
echo -en "File saved to /tmp/ocr-'$id'.png\n"
|
||||
|
||||
|
||||
echo "Sending notification..."
|
||||
notify-send "OCR " "Text copied!"
|
||||
|
||||
echo "Cleaning up..."
|
||||
rm /tmp/ocr-"$id".png -vf
|
||||
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
24
nyx/homes/notashelf/packages/cli/whitehat.nix
Normal file
24
nyx/homes/notashelf/packages/cli/whitehat.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
prg = modules.system.programs;
|
||||
dev = modules.device;
|
||||
acceptedTypes = ["desktop" "laptop" "lite" "hybrid"];
|
||||
in {
|
||||
config = mkIf ((builtins.elem dev.type acceptedTypes) && prg.cli.enable) {
|
||||
home.packages = with pkgs; [
|
||||
# CLI
|
||||
binwalk
|
||||
binutils
|
||||
diffoscopeMinimal
|
||||
nmap
|
||||
nmapsi4
|
||||
];
|
||||
};
|
||||
}
|
7
nyx/homes/notashelf/packages/default.nix
Normal file
7
nyx/homes/notashelf/packages/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./gui
|
||||
./cli
|
||||
./dev
|
||||
];
|
||||
}
|
5
nyx/homes/notashelf/packages/dev/default.nix
Normal file
5
nyx/homes/notashelf/packages/dev/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./packages
|
||||
];
|
||||
}
|
15
nyx/homes/notashelf/packages/dev/packages/default.nix
Normal file
15
nyx/homes/notashelf/packages/dev/packages/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{pkgs, ...}: {
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
# LaTeX
|
||||
texlive.combined.scheme-full
|
||||
(pkgs.writeShellApplication {
|
||||
name = "pdflatexmk";
|
||||
runtimeInputs = with pkgs; [texlive.combined.scheme-full];
|
||||
text = ''
|
||||
latexmk -pdf "$@" && latexmk -c "$@"
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
22
nyx/homes/notashelf/packages/gui/3dprint.nix
Normal file
22
nyx/homes/notashelf/packages/gui/3dprint.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
sys = modules.system;
|
||||
prg = sys.programs;
|
||||
|
||||
dev = modules.device;
|
||||
acceptedTypes = ["laptop" "desktop" "hybrid" "lite"];
|
||||
in {
|
||||
config = mkIf ((prg.gui.enable && sys.printing."3d".enable) && (builtins.elem dev.type acceptedTypes)) {
|
||||
home.packages = with pkgs; [
|
||||
freecad
|
||||
prusa-slicer
|
||||
];
|
||||
};
|
||||
}
|
7
nyx/homes/notashelf/packages/gui/default.nix
Normal file
7
nyx/homes/notashelf/packages/gui/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./shared.nix
|
||||
./wayland.nix
|
||||
./3dprint.nix
|
||||
];
|
||||
}
|
70
nyx/homes/notashelf/packages/gui/shared.nix
Normal file
70
nyx/homes/notashelf/packages/gui/shared.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
sys = modules.system;
|
||||
prg = sys.programs;
|
||||
|
||||
dev = modules.device;
|
||||
acceptedTypes = ["laptop" "desktop" "hybrid" "lite"];
|
||||
in {
|
||||
config = mkIf ((prg.gui.enable && sys.video.enable) && (builtins.elem dev.type acceptedTypes)) {
|
||||
home.packages = with pkgs; [
|
||||
# zoom-us # may we never return to online education
|
||||
nextcloud-client
|
||||
easyeffects
|
||||
librewolf
|
||||
cinnamon.nemo
|
||||
qbittorrent
|
||||
hexchat
|
||||
netflix
|
||||
bitwarden
|
||||
helvum
|
||||
(symlinkJoin {
|
||||
# wrap obsidian with pandoc for the pandoc plugin dependency
|
||||
name = "Obsidian";
|
||||
paths = with pkgs; [
|
||||
obsidian
|
||||
pandoc # pandoc plugin uses pandoc to render alternative text formats
|
||||
];
|
||||
})
|
||||
|
||||
# plasma packages
|
||||
plasma5Packages.dolphin
|
||||
plasma5Packages.dolphin-plugins
|
||||
plasma5Packages.kio
|
||||
plasma5Packages.kio-extras
|
||||
plasma5Packages.kimageformats
|
||||
plasma5Packages.kdegraphics-thumbnailers
|
||||
plasma5Packages.okular
|
||||
|
||||
# gnome packages
|
||||
gnome.gnome-tweaks
|
||||
gnome.gnome-calendar
|
||||
komikku
|
||||
|
||||
# override gnome-control-center to trick it into thinking we're running gnome
|
||||
# <https://github.com/NixOS/nixpkgs/issues/230493>
|
||||
# <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/736>
|
||||
# get overriden idiot
|
||||
/*
|
||||
(gnome.gnome-control-center.overrideAttrs
|
||||
(old: {
|
||||
# gnome-control-center does not start without XDG_CURRENT_DESKTOP=gnome
|
||||
preFixup =
|
||||
''
|
||||
gappsWrapperArgs+=(
|
||||
--set XDG_CURRENT_DESKTOP "gnome"
|
||||
);
|
||||
''
|
||||
+ old.preFixup;
|
||||
}))
|
||||
*/
|
||||
];
|
||||
};
|
||||
}
|
19
nyx/homes/notashelf/packages/gui/wayland.nix
Normal file
19
nyx/homes/notashelf/packages/gui/wayland.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
env = osConfig.modules.usrEnv;
|
||||
sys = osConfig.modules.system;
|
||||
prg = sys.programs;
|
||||
in {
|
||||
config = mkIf (prg.gui.enable && (sys.video.enable && env.isWayland)) {
|
||||
home.packages = with pkgs; [
|
||||
wlogout
|
||||
swappy
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue