mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
refactor(module): clean up some module inputs
feat(module): add use-lix option to nix module feat(module): update fish config for catppuccin
This commit is contained in:
parent
3f767068d2
commit
fde4abd59d
16 changed files with 173 additions and 115 deletions
|
@ -2,32 +2,25 @@
|
|||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
|
||||
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||
home, # The home architecture for this host (eg. `x86_64-linux`).
|
||||
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||
format, # A normalized name for the home target (eg. `home`).
|
||||
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||
host, # The host name for this home.
|
||||
|
||||
namespace,
|
||||
config,
|
||||
...
|
||||
}: with lib; with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.apps.zed-editor;
|
||||
cfg = config.${namespace}.apps.zed-editor;
|
||||
|
||||
zed-fhs = pkgs.buildFHSUserEnv {
|
||||
name = "zed";
|
||||
targetPkgs = pkgs:
|
||||
with pkgs; [
|
||||
zed-editor
|
||||
];
|
||||
runScript = "zed";
|
||||
};
|
||||
zed-fhs = pkgs.buildFHSUserEnv {
|
||||
name = "zed";
|
||||
targetPkgs = pkgs:
|
||||
with pkgs; [
|
||||
zed-editor
|
||||
];
|
||||
runScript = "zed";
|
||||
};
|
||||
in {
|
||||
options.${namespace}.apps.zed-editor = { enable = mkEnableOption "zed-editor"; };
|
||||
options.${namespace}.apps.zed-editor = { enable = mkEnableOption "zed-editor"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [zed-fhs];
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [zed-fhs];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue