Compare commits
No commits in common. "f717547060fccd233433745924006ebf5b04b43e" and "f9af0ee523dd4cf86d509878a34ce453d3bbbd2d" have entirely different histories.
f717547060
...
f9af0ee523
22 changed files with 25 additions and 104 deletions
|
@ -20,6 +20,7 @@
|
||||||
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,7 +7,6 @@
|
||||||
|
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
./profiles.nix
|
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
marleylib,
|
marleylib,
|
||||||
inputs,
|
|
||||||
inputs',
|
inputs',
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
@ -24,7 +23,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
sharedModules = [../home];
|
sharedModules = [../home];
|
||||||
extraSpecialArgs = {inherit marleylib inputs inputs';};
|
extraSpecialArgs = {inherit marleylib inputs';};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
{
|
|
||||||
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,9 +1,5 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./curl.nix
|
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./jq.nix
|
|
||||||
./less.nix
|
|
||||||
./neovim.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
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,7 +9,5 @@
|
||||||
|
|
||||||
./system
|
./system
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
./profiles.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{marleylib, ...}: let
|
|
||||||
inherit (marleylib.module) enabled;
|
|
||||||
in {
|
|
||||||
marleyos = {
|
|
||||||
programs = {
|
|
||||||
fish = enabled;
|
|
||||||
nh = enabled;
|
|
||||||
wezterm = enabled;
|
|
||||||
wireguard = enabled;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./nh.nix
|
|
||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -25,7 +25,6 @@ in {
|
||||||
jq = enabled;
|
jq = enabled;
|
||||||
just = enabled;
|
just = enabled;
|
||||||
less = enabled;
|
less = enabled;
|
||||||
man = enabled;
|
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -41,8 +40,6 @@ in {
|
||||||
gh = enabled;
|
gh = enabled;
|
||||||
glow = enabled;
|
glow = enabled;
|
||||||
nemo = enabled;
|
nemo = enabled;
|
||||||
neo = enabled;
|
|
||||||
neovim = enabled;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -19,10 +19,7 @@
|
||||||
./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
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ 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 {
|
||||||
|
@ -24,11 +23,5 @@ 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,6 +4,7 @@
|
||||||
osConfig,
|
osConfig,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (marleylib.module) mkEnableOption' enabled;
|
inherit (marleylib.module) mkEnableOption' enabled;
|
||||||
|
@ -22,6 +23,8 @@ 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,7 +12,10 @@ in {
|
||||||
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
curl = enabled;
|
||||||
fish = enabled;
|
fish = enabled;
|
||||||
|
jq = enabled;
|
||||||
|
less = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./curl.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./jq.nix
|
||||||
|
./less.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.man;
|
cfg = config.marleyos.programs.man;
|
||||||
|
@ -12,11 +12,8 @@ in {
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
MANWIDTH = "80";
|
MANWIDTH = "80";
|
||||||
|
# TODO: Only set this is nvim is installed. Also install plugin here?
|
||||||
MANPAGER =
|
MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!";
|
||||||
lib.mkIf
|
|
||||||
config.marleyos.programs.neovim.enable
|
|
||||||
"nvim +NoNeckPain '+set nowrap' +Man!";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
|
@ -1,10 +1,11 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
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";
|
||||||
|
|
||||||
|
@ -12,5 +13,11 @@ in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nh
|
nh
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.sessionVariables.FLAKE = lib.mkDefault "${home}/marleyos";
|
||||||
|
|
||||||
|
home.shellAbbrs = {
|
||||||
|
nhs = "nh search";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1,18 +1,12 @@
|
||||||
{
|
{
|
||||||
marleylib,
|
|
||||||
config,
|
|
||||||
osConfig,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
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 =
|
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
|
||||||
mkEnableOption' "neovim" osCfg.enable;
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
Loading…
Reference in a new issue