feat: rework to modular
This commit is contained in:
11
modules/optional/devtools.nix
Normal file
11
modules/optional/devtools.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
optionalPackage = path: lib.attrByPath path null pkgs;
|
||||
in
|
||||
{
|
||||
home.packages = builtins.filter (pkg: pkg != null) [
|
||||
(optionalPackage [ "nil" ])
|
||||
(optionalPackage [ "nixd" ])
|
||||
(optionalPackage [ "nixfmt" ])
|
||||
];
|
||||
}
|
||||
9
modules/optional/gui.nix
Normal file
9
modules/optional/gui.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
wezterm = lib.attrByPath [ "wezterm" ] null pkgs;
|
||||
in
|
||||
{
|
||||
home.packages = builtins.filter (pkg: pkg != null) [
|
||||
wezterm
|
||||
];
|
||||
}
|
||||
6
modules/optional/homebrew.nix
Normal file
6
modules/optional/homebrew.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
# Intentionally empty. This is the seam downstream workstations can use to
|
||||
# compose nix-homebrew or Homebrew-specific activation without coupling it
|
||||
# into the shared base roles.
|
||||
}
|
||||
Reference in New Issue
Block a user