feat: reorganizing

This commit is contained in:
punkfairie 2025-05-27 18:31:34 -07:00
parent cb6e5d21d1
commit 68c0738d05
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
12 changed files with 29 additions and 14 deletions

View file

@ -12,7 +12,10 @@ in {
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{ {
programs = { programs = {
curl = enabled;
fish = enabled; fish = enabled;
jq = enabled;
less = enabled;
neovim = enabled; neovim = enabled;
}; };
} }

View file

@ -1,6 +1,9 @@
{ {
imports = [ imports = [
./curl.nix
./fish.nix ./fish.nix
./jq.nix
./less.nix
./neovim.nix ./neovim.nix
]; ];
} }

View file

@ -9,5 +9,7 @@
./system ./system
./programs ./programs
./profiles.nix
]; ];
} }

View file

@ -0,0 +1,12 @@
{marleylib, ...}: let
inherit (marleylib.module) enabled;
in {
marleyos = {
programs = {
fish = enabled;
nh = enabled;
wezterm = enabled;
wireguard = enabled;
};
};
}

View file

@ -1,6 +1,7 @@
{ {
imports = [ imports = [
./fish.nix ./fish.nix
./nh.nix
./wezterm.nix ./wezterm.nix
./wireguard.nix ./wireguard.nix
]; ];

View file

@ -1,11 +1,10 @@
{ {
lib,
config, config,
lib,
pkgs, pkgs,
... ...
}: let }: let
cfg = config.marleyos.programs.nh; cfg = config.marleyos.programs.nh;
home = config.home.homeDirectory;
in { in {
options.marleyos.programs.nh.enable = lib.mkEnableOption "nh"; options.marleyos.programs.nh.enable = lib.mkEnableOption "nh";
@ -13,11 +12,5 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
nh nh
]; ];
home.sessionVariables.FLAKE = lib.mkDefault "${home}/marleyos";
home.shellAbbrs = {
nhs = "nh search";
};
}; };
} }

View file

@ -15,6 +15,7 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.nh = { programs.nh = {
enable = true; enable = true;
clean = clean =
osConfig.programs.nh.clean osConfig.programs.nh.clean
or { or {
@ -23,5 +24,11 @@ in {
extraArgs = "--keep-since 7d --keep 3"; extraArgs = "--keep-since 7d --keep 3";
}; };
}; };
home.sessionVariables.FLAKE = "${config.home.homeDirectory}/marleyos";
home.shellAbbrs = {
nhs = "nh search";
};
}; };
} }

View file

@ -12,10 +12,7 @@ in {
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{ {
programs = { programs = {
curl = enabled;
fish = enabled; fish = enabled;
jq = enabled;
less = enabled;
nh = enabled; nh = enabled;
}; };

View file

@ -1,9 +1,6 @@
{ {
imports = [ imports = [
./curl.nix
./fish.nix ./fish.nix
./jq.nix
./less.nix
./nh.nix ./nh.nix
./waybar.nix ./waybar.nix
]; ];