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 age-plugin-yubikey
14 alejandra
15 cachix
16 fastfetch
17 hexyl
18 lazydocker
19 macchina
20 minio-client
21 mix2nix
22 minisign
23 mtr
24 nix-output-monitor
25 opencode
26 pgcli
27 rage
28 systemctl-tui
29 ];
30
31 nixos.ifEnabled = {myconfig, ...}: {
32 programs.nh = {
33 enable = true;
34 flake = "/etc/nixos";
35 };
36
37 environment.systemPackages = with pkgs.gst_all_1; [
38 gstreamer
39 gst-vaapi
40 gst-libav
41 gst-plugins-good
42 gst-plugins-ugly
43 gst-plugins-bad
44 ];
45 };
46
47 darwin.ifEnabled = {myconfig, ...}: {
48 environment.systemPackages = with pkgs; [nh];
49 environment.variables.NH_FLAKE = "/Users/${myconfig.constants.username}/.config/nix-darwin";
50 };
51}