tidy packages and added 1password systemd

This commit is contained in:
2026-03-09 20:05:04 -07:00
parent 7798be7eac
commit 32eab66d8e
11 changed files with 161 additions and 234 deletions

36
flake.lock generated
View File

@@ -6,11 +6,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1772768709, "lastModified": 1772918486,
"narHash": "sha256-uzeT4oc5MyZaGJ4C1J2FMSfcUJUoMlzf1ZSWIgBrW7A=", "narHash": "sha256-lwpRpS7JPR4eqzfnJNt3Cdmi596cUnWRlFaHvCqVv9E=",
"owner": "utensils", "owner": "utensils",
"repo": "comfyui-nix", "repo": "comfyui-nix",
"rev": "390747dcc0631621fe43308b3464d2591e11e77d", "rev": "2c0c411d90764084d7b75be6402c320bcc278776",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -97,11 +97,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772633058, "lastModified": 1772985280,
"narHash": "sha256-SO7JapRy2HPhgmqiLbfnW1kMx5rakPMKZ9z3wtRLQjI=", "narHash": "sha256-FdrNykOoY9VStevU4zjSUdvsL9SzJTcXt4omdEDZDLk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "080657a04188aca25f8a6c70a0fb2ea7e37f1865", "rev": "8f736f007139d7f70752657dff6a401a585d6cbc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -118,11 +118,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772845525, "lastModified": 1772985285,
"narHash": "sha256-Dp5Ir2u4jJDGCgeMRviHvEQDe+U37hMxp6RSNOoMMPc=", "narHash": "sha256-wEEmvfqJcl9J0wyMgMrj1TixOgInBW/6tLPhWGoZE3s=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "27b93804fbef1544cb07718d3f0a451f4c4cd6c0", "rev": "5be5d8245cbc7bc0c09fbb5f38f23f223c543f85",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -138,11 +138,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772379624, "lastModified": 1773000227,
"narHash": "sha256-NG9LLTWlz4YiaTAiRGChbrzbVxBfX+Auq4Ab/SWmk4A=", "narHash": "sha256-zm3ftUQw0MPumYi91HovoGhgyZBlM4o3Zy0LhPNwzXE=",
"owner": "nix-darwin", "owner": "nix-darwin",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "52d061516108769656a8bd9c6e811c677ec5b462", "rev": "da529ac9e46f25ed5616fd634079a5f3c579135f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -174,11 +174,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1771969195, "lastModified": 1772972630,
"narHash": "sha256-qwcDBtrRvJbrrnv1lf/pREQi8t2hWZxVAyeMo7/E9sw=", "narHash": "sha256-mUJxsNOrBMNOUJzN0pfdVJ1r2pxeqm9gI/yIKXzVVbk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "41c6b421bdc301b2624486e11905c9af7b8ec68e", "rev": "3966ce987e1a9a164205ac8259a5fe8a64528f72",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -236,11 +236,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1772773019, "lastModified": 1772963539,
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=", "narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6", "rev": "9dcb002ca1690658be4a04645215baea8b95f31d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -48,69 +48,89 @@ in
cpu-x cpu-x
curl curl
dig dig
docker
dust dust
fd fd
file
findutils
fosrl-olm fosrl-olm
fzf fzf
git
git-filter-repo git-filter-repo
glances glances
gping gping
graphviz graphviz
jq jq
kitty kitty
kopia
lazydocker
lazygit lazygit
lazyjournal lazyjournal
manga-tui manga-tui
mcat mcat
netop netop
# netscanner nettools
nix-du nix-du
nix-prefetch-github
nmap nmap
trippy openssh
tuptime
openssl openssl
ptunnel
ripgrep ripgrep
s3cmd s3cmd
timg timg
tldr tldr
trippy trippy
trivy trivy
tuptime
unzip
wget wget
wireguard-tools wireguard-tools
#pkgs-unstable.witr
yazi yazi
yt-dlp yt-dlp
zstd zstd
list-keybinds list-keybinds
] ]
# Desktop-specific packages (Linux desktops and macOS) # Desktop-specific packages (Linux desktops and macOS)
++ lib.optionals (!(hostTypes.isServer hostname)) (with pkgs; [ ++ lib.optionals (!(hostTypes.isServer hostname)) (with pkgs; [
claude-code claude-code
caligula caligula
ocamlPackages.utop ocamlPackages.utop
# opencode
openconnect openconnect
# termusic
yubikey-manager yubikey-manager
]) ])
# Server-specific packages # Server-specific packages
++ lib.optionals (hostTypes.isServer hostname) (with pkgs; [ ++ lib.optionals (hostTypes.isServer hostname) (with pkgs; [
# Add server-specific packages here gparted
])
++ lib.optionals (hostname == "") [
]
# Host-specific packages
++ lib.optionals (hostname == "eva-01") [
#apps
rpi-imager
# cli
libusb1
parted parted
plocate
tailscale
tlp
traceroute traceroute
ffmpeg-full
pkgs-unstable.witr
])
# cyber # Linux desktop packages
++ lib.optionals (hostTypes.isLinuxDesktop hostname) (with pkgs; [
plocate
tlp
swaynotificationcenter
gparted
nerd-fonts.hack
nerd-fonts.fira-code
])
# Pentesting/security tools (eva-01 and eva-03)
++ lib.optionals (builtins.elem hostname [ "eva-01" "eva-03" ]) (with pkgs; [
aircrack-ng
hcxdumptool
hcxtools
metasploit
wifite2
wirelesstools
amass amass
bettercap bettercap
bloodhound bloodhound
@@ -137,18 +157,52 @@ in
sqlmap sqlmap
steghide steghide
thc-hydra thc-hydra
])
# eva-01 specific
++ lib.optionals (hostname == "eva-01") [
pkgs.rpi-imager
pkgs.libusb1
pkgs.parted
pkgs.traceroute
pkgs.android-tools
pkgs.goose-cli
] ]
# eva-03 specific
++ lib.optionals (hostname == "eva-03") [ ++ lib.optionals (hostname == "eva-03") [
# cli pkgs.parted
parted pkgs.traceroute
traceroute pkgs.ffmpeg-full
ffmpeg-full pkgs-unstable.vscode
(pkgs-unstable.llama-cpp.override { cudaSupport = true; })
pkgs-unstable.witr
] ]
# buildbox specific
++ lib.optionals (hostname == "buildbox") [ ++ lib.optionals (hostname == "buildbox") [
# cli pkgs.parted
parted pkgs.traceroute
traceroute pkgs.ffmpeg-full
ffmpeg-full pkgs-unstable.witr
]
# ender-ml specific
++ lib.optionals (hostname == "ender-ml") [
pkgs-unstable.stable-diffusion-cpp-cuda
(pkgs-unstable.llama-cpp.override { cudaSupport = true; })
pkgs-unstable.witr
pkgs-unstable.comfy-ui-cuda
]
# acheron specific
++ lib.optionals (hostname == "acheron") [
pkgs.pkgs-unstable.witr
]
# eva-02 (macOS) specific
++ lib.optionals (hostname == "eva-02") [
pkgs-unstable.vscode
]; ];
programs = { programs = {
@@ -206,6 +260,4 @@ in
enableZshIntegration = true; enableZshIntegration = true;
}; };
}; };
# fonts.fontconfig.enable = lib.mkIf (hostname != "eva-02") true;
} }

View File

@@ -13,7 +13,7 @@
"$git_status" "$git_status"
"$hostname" "$hostname"
"$golang" "$golang"
"direnv" "$direnv"
"$status" "$status"
]; ];

View File

@@ -17,8 +17,6 @@
gtk-single-instance = true; gtk-single-instance = true;
#custom-shader = "./shaders/tft.glsl";
font-family = "JetBrainsMono Nerd Font"; font-family = "JetBrainsMono Nerd Font";
font-family-italic = "Maple Mono"; font-family-italic = "Maple Mono";
font-family-bold-italic = "Maple Mono"; font-family-bold-italic = "Maple Mono";
@@ -42,9 +40,4 @@
]; ];
}; };
}; };
#home.file.".config/ghostty/shaders" = {
# enable = true;
# source = ./shaders;
# recursive = true;
#};
} }

View File

@@ -12,10 +12,9 @@
listeners = [ listeners = [
{ {
timeout = 30; timeout = 300;
on-timeout = "pidof hyprlock && hyprctl dispatch dpms off"; on-timeout = "pidof hyprlock && hyprctl dispatch dpms off";
on-resume = "pidof hyprlock && hyprctl dispatch dpms on"; on-resume = "hyprctl dispatch dpms on";
} }
{ {
timeout = 540; timeout = 540;
@@ -27,11 +26,6 @@
on-timeout = "loginctl lock-session"; on-timeout = "loginctl lock-session";
on-resume = "notify-send 'Desktop Unlocked!'"; on-resume = "notify-send 'Desktop Unlocked!'";
} }
# {
# timeout = 1200;
# on-timeout = "systemctl suspend";
# on-resume = "notify-send 'Welcome back to your desktop!'";
# }
]; ];
}; };
}; };

View File

@@ -26,7 +26,7 @@ let
base0F = "ff9e64"; base0F = "ff9e64";
}; };
# Laptop hostnames that should show battery # Laptop hostnames that should show battery
isLaptop = builtins.elem hostname [ "laptop" "thinkpad" "framework" "portable" ]; isLaptop = builtins.elem hostname [ "eva-01" ];
in in
with lib; with lib;
{ {

View File

@@ -9,6 +9,7 @@
inputs, inputs,
configPath, configPath,
hostname, hostname,
hostTypes,
lib, lib,
... ...
}: }:
@@ -135,31 +136,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# System-level only — CLI tools moved to home-manager
#cli tools
btop
curl
docker
dust
file
findutils
git
gparted
lazydocker
nettools
nix-prefetch-github
nmap
openssh
openssl
parted
plocate
ptunnel
tailscale
tlp
unzip
vim
pkgs-unstable.witr
]; ];
home-manager = { home-manager = {
@@ -169,6 +146,7 @@
inputs inputs
pkgs-unstable pkgs-unstable
hostname hostname
hostTypes
; ;
}; };
users = { users = {

View File

@@ -167,31 +167,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Server-specific packages # System-level only — CLI tools moved to home-manager
btop
curl
docker
dust
file
findutils
git
gparted
kopia
lazydocker
nettools
nix-prefetch-github
nmap
openssh
openssl
parted
plocate
ptunnel
tailscale
tlp
unzip
vim
pkgs-unstable.witr
]; ];
home-manager = { home-manager = {

View File

@@ -226,33 +226,8 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Server-specific packages # System-level only — CLI tools moved to home-manager
btop-cuda btop-cuda # cuda variant must stay system-level with nvidia drivers
curl
docker
dust
file
findutils
git
gparted
lazydocker
nettools
nix-prefetch-github
nmap
openssh
openssl
parted
plocate
ptunnel
tailscale
tlp
unzip
vim
pkgs-unstable.stable-diffusion-cpp-cuda
(pkgs-unstable.llama-cpp.override { cudaSupport = true; })
pkgs-unstable.witr
pkgs-unstable.comfy-ui-cuda
]; ];
home-manager = { home-manager = {

View File

@@ -218,6 +218,26 @@
polkitPolicyOwners = [ "rogueking" ]; polkitPolicyOwners = [ "rogueking" ];
}; };
# 1Password SSH agent systemd socket
systemd.user.sockets."1password" = {
wantedBy = [ "sockets.target" ];
socketConfig = {
ListenStream = "%t/1password/agent.sock";
SocketMode = "0600";
};
};
systemd.user.services."1password" = {
description = "1Password SSH Agent";
requires = [ "1password.socket" ];
after = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs._1password-gui}/bin/1password --silent";
Restart = "on-failure";
RestartSec = 5;
};
};
#steam #steam
programs.steam.enable = true; programs.steam.enable = true;
@@ -253,48 +273,8 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
#apps # System-level only
#cider-2 fprintd # fingerprint daemon integration
fprintd
#sddm-astronaut
#cli tools
aircrack-ng
android-tools
btop
curl
docker
dust
file
findutils
git
goose-cli
hcxdumptool
hcxtools
kopia
lazydocker
metasploit
nettools
nix-prefetch-github
nmap
openssh
openssl
plocate
ptunnel
tailscale
tlp
unzip
vim
wifite2
wirelesstools
swaynotificationcenter
#fonts
nerd-fonts.hack
nerd-fonts.fira-code
#unstable
#pkgs-unstable.vllm
]; ];
home-manager = { home-manager = {

View File

@@ -235,11 +235,29 @@
programs._1password.enable = true; programs._1password.enable = true;
programs._1password-gui = { programs._1password-gui = {
enable = true; enable = true;
# Certain features, including CLI integration and system authentication support,
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
polkitPolicyOwners = [ "rogueking" ]; polkitPolicyOwners = [ "rogueking" ];
}; };
# 1Password SSH agent systemd socket
systemd.user.sockets."1password" = {
wantedBy = [ "sockets.target" ];
socketConfig = {
ListenStream = "%t/1password/agent.sock";
SocketMode = "0600";
};
};
systemd.user.services."1password" = {
description = "1Password SSH Agent";
requires = [ "1password.socket" ];
after = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs._1password-gui}/bin/1password --silent";
Restart = "on-failure";
RestartSec = 5;
};
};
#steam #steam
programs.steam.enable = true; programs.steam.enable = true;
@@ -264,49 +282,10 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
#apps # System-level only
fprintd fprintd
polonium polonium # KDE tiling script
config.boot.kernelPackages.openrazer config.boot.kernelPackages.openrazer # kernel module, must be system-level
#cli tools
aircrack-ng
android-tools
btop-cuda
curl
docker
dust
file
findutils
fwupd
git
hcxdumptool
hcxtools
kopia
lazydocker
metasploit
nettools
nix-prefetch-github
nmap
openssh
openssl
plocate
ptunnel
tlp
unzip
vim
wifite2
wirelesstools
#unstable
pkgs-unstable.vscode
(pkgs-unstable.llama-cpp.override { cudaSupport = true; })
pkgs-unstable.witr
#fonts
nerd-fonts.hack
nerd-fonts.fira-code
]; ];