Nix configurations for my personal machines (Linux & macOS)
1{
2 delib,
3 lib,
4 pkgs,
5 ...
6}:
7delib.module {
8 name = "programs.desktop-cli";
9
10 options = delib.singleEnableOption true;
11
12 home.ifEnabled.home.packages = with pkgs;
13 [
14 age-plugin-yubikey
15 alejandra
16 cachix
17 fastfetch
18 hexyl
19 lazydocker
20 macchina
21 minio-client
22 mix2nix
23 minisign
24 mtr
25 nix-output-monitor
26 pgcli
27 rage
28 systemctl-tui
29 ]
30 ++ (lib.optional pkgs.stdenv.isLinux [pkgs.claude-code pkgs.claude-code-router]);
31
32 nixos.ifEnabled = {myconfig, ...}: {
33 programs.nh = {
34 enable = true;
35 flake = "/etc/nixos";
36 };
37
38 environment.systemPackages = with pkgs.gst_all_1; [
39 gstreamer
40 gst-vaapi
41 gst-libav
42 gst-plugins-good
43 gst-plugins-ugly
44 gst-plugins-bad
45 ];
46 };
47
48 darwin.ifEnabled = {myconfig, ...}: {
49 environment.systemPackages = with pkgs; [nh];
50 environment.variables.NH_FLAKE = "/Users/${myconfig.constants.username}/.config/nix-darwin";
51 };
52}