feat: reorganizing
This commit is contained in:
parent
cb6e5d21d1
commit
68c0738d05
12 changed files with 29 additions and 14 deletions
|
@ -12,7 +12,10 @@ in {
|
||||||
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
curl = enabled;
|
||||||
fish = enabled;
|
fish = enabled;
|
||||||
|
jq = enabled;
|
||||||
|
less = enabled;
|
||||||
neovim = enabled;
|
neovim = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./curl.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./jq.nix
|
||||||
|
./less.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,5 +9,7 @@
|
||||||
|
|
||||||
./system
|
./system
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
|
./profiles.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
12
modules/darwin/profiles.nix
Normal file
12
modules/darwin/profiles.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{marleylib, ...}: let
|
||||||
|
inherit (marleylib.module) enabled;
|
||||||
|
in {
|
||||||
|
marleyos = {
|
||||||
|
programs = {
|
||||||
|
fish = enabled;
|
||||||
|
nh = enabled;
|
||||||
|
wezterm = enabled;
|
||||||
|
wireguard = enabled;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./nh.nix
|
||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,10 +12,7 @@ in {
|
||||||
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
curl = enabled;
|
|
||||||
fish = enabled;
|
fish = enabled;
|
||||||
jq = enabled;
|
|
||||||
less = enabled;
|
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./curl.nix
|
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./jq.nix
|
|
||||||
./less.nix
|
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue