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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{
programs = {
curl = enabled;
fish = enabled;
jq = enabled;
less = enabled;
neovim = enabled;
};
}

View file

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

View file

@ -9,5 +9,7 @@
./system
./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 = [
./fish.nix
./nh.nix
./wezterm.nix
./wireguard.nix
];

View file

@ -1,11 +1,10 @@
{
lib,
config,
lib,
pkgs,
...
}: let
cfg = config.marleyos.programs.nh;
home = config.home.homeDirectory;
in {
options.marleyos.programs.nh.enable = lib.mkEnableOption "nh";
@ -13,11 +12,5 @@ in {
home.packages = with pkgs; [
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 {
programs.nh = {
enable = true;
clean =
osConfig.programs.nh.clean
or {
@ -23,5 +24,11 @@ in {
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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{
programs = {
curl = enabled;
fish = enabled;
jq = enabled;
less = enabled;
nh = enabled;
};

View file

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