Compare commits
5 commits
f9af0ee523
...
f717547060
Author | SHA1 | Date | |
---|---|---|---|
f717547060 | |||
68c0738d05 | |||
cb6e5d21d1 | |||
1a288babfc | |||
99a600c253 |
22 changed files with 104 additions and 25 deletions
|
@ -20,7 +20,6 @@
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
})
|
})
|
||||||
(import ./overlays/jetbrains.nix {inherit inputs;})
|
(import ./overlays/jetbrains.nix {inherit inputs;})
|
||||||
(import ./overlays/marleyvim.nix {inherit inputs;})
|
|
||||||
(import ./overlays/wezterm.nix {inherit inputs;})
|
(import ./overlays/wezterm.nix {inherit inputs;})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
|
./profiles.nix
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
marleylib,
|
marleylib,
|
||||||
|
inputs,
|
||||||
inputs',
|
inputs',
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
@ -23,7 +24,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
sharedModules = [../home];
|
sharedModules = [../home];
|
||||||
extraSpecialArgs = {inherit marleylib inputs';};
|
extraSpecialArgs = {inherit marleylib inputs inputs';};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
31
modules/base/profiles.nix
Normal file
31
modules/base/profiles.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
marleylib,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.marleycfg.profiles;
|
||||||
|
|
||||||
|
inherit (marleylib.module) enabled;
|
||||||
|
in {
|
||||||
|
marleyos = lib.mkMerge [
|
||||||
|
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
curl = enabled;
|
||||||
|
fish = enabled;
|
||||||
|
jq = enabled;
|
||||||
|
less = enabled;
|
||||||
|
neovim = enabled;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
(lib.optionalAttrs cfg.desktop {})
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
(lib.optionalAttrs cfg.server {})
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./curl.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./jq.nix
|
||||||
|
./less.nix
|
||||||
|
./neovim.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
22
modules/base/programs/neovim.nix
Normal file
22
modules/base/programs/neovim.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.marleyos.programs.neovim;
|
||||||
|
in {
|
||||||
|
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Has to be applied on the OS level to use in HM.
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import ../../../overlays/marleyvim.nix {inherit inputs;})
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
neovim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -25,6 +25,7 @@ in {
|
||||||
jq = enabled;
|
jq = enabled;
|
||||||
just = enabled;
|
just = enabled;
|
||||||
less = enabled;
|
less = enabled;
|
||||||
|
man = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -40,6 +41,8 @@ in {
|
||||||
gh = enabled;
|
gh = enabled;
|
||||||
glow = enabled;
|
glow = enabled;
|
||||||
nemo = enabled;
|
nemo = enabled;
|
||||||
|
neo = enabled;
|
||||||
|
neovim = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -19,7 +19,10 @@
|
||||||
./jq.nix
|
./jq.nix
|
||||||
./just.nix
|
./just.nix
|
||||||
./less.nix
|
./less.nix
|
||||||
|
./man.nix
|
||||||
./nemo.nix
|
./nemo.nix
|
||||||
|
./neo.nix
|
||||||
|
./neovim.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.man;
|
cfg = config.marleyos.programs.man;
|
||||||
|
@ -12,8 +12,11 @@ in {
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
MANWIDTH = "80";
|
MANWIDTH = "80";
|
||||||
# TODO: Only set this is nvim is installed. Also install plugin here?
|
|
||||||
MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!";
|
MANPAGER =
|
||||||
|
lib.mkIf
|
||||||
|
config.marleyos.programs.neovim.enable
|
||||||
|
"nvim +NoNeckPain '+set nowrap' +Man!";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
|
@ -1,12 +1,18 @@
|
||||||
{
|
{
|
||||||
lib,
|
marleylib,
|
||||||
config,
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (marleylib.module) mkEnableOption';
|
||||||
|
|
||||||
cfg = config.marleyos.programs.neovim;
|
cfg = config.marleyos.programs.neovim;
|
||||||
|
osCfg = osConfig.marleyos.programs.neovim;
|
||||||
in {
|
in {
|
||||||
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
|
options.marleyos.programs.neovim.enable =
|
||||||
|
mkEnableOption' "neovim" osCfg.enable;
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
|
@ -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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
osConfig,
|
osConfig,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (marleylib.module) mkEnableOption' enabled;
|
inherit (marleylib.module) mkEnableOption' enabled;
|
||||||
|
@ -23,8 +22,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
|
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
|
||||||
nixpkgs.overlays = [inputs.niri-flake.overlays.niri];
|
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
shell.wayland = enabled;
|
shell.wayland = enabled;
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -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