Compare commits

..

No commits in common. "4ce7b95d1bb2d211d39f2697a0884d5eb12d716d" and "1fb54d67aeb32c65cd4f9b3e31e2bb14da96355c" have entirely different histories.

5 changed files with 28 additions and 9 deletions

View file

@ -2,4 +2,4 @@ test:
nix run \
--inputs-from "./dev" "github:Mic92/nix-fast-build" -- \
--no-nom \
--flake "./dev#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
--flake "./dev#checks$(nix eval --raw --impure --expr builtins.currentSystem)"

View file

@ -25,6 +25,7 @@
./sway.nix
./tmux.nix
./waybar.nix
./wezterm.nix
./zathura.nix
./zellij.nix
]

View file

@ -2,19 +2,20 @@
config,
lib,
...
}:
let
}: let
inherit (config.rose-pine) sources;
cfg = config.programs.starship.rose-pine;
enable = cfg.enable && config.programs.starship.enable;
themeName = if (cfg.flavor == "main") then "rose-pine" else "rose-pine-${cfg.flavor}";
in
{
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt { name = "starship"; };
themeName =
if (cfg.flavor == "main")
then "rose-pine"
else "rose-pine-${cfg.flavor}";
in {
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt {name = "starship";};
config.programs.starship.settings = lib.mkIf enable (
lib.mkDefault (lib.importTOML "${sources.starship}/${themeName}.toml")
lib.importTOML "${sources.starship}/${themeName}.toml"
);
}

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
cfg = config.programs.wezterm.rose-pine;
enable = cfg.enable && config.programs.wezterm.enable;
in
{
options.programs.wezterm.rose-pine = lib.rp.mkRosePineOpt { name = "wezterm"; };
config.programs.wezterm.extraConfig = lib.mkIf enable ''
local theme = wezterm.plugin.require('https://github.com/neapsix/wezterm').${cfg.flavor}
config.colors = theme.colors()
config.window_frame = theme.window_frame()
'';
}

View file

@ -1,4 +1,5 @@
{lib, ...}: {
{ lib, ... }:
{
imports = [
../modules/home-manager
./common.nix
@ -33,6 +34,7 @@
swaylock.enable = true;
tmux.enable = true;
waybar.enable = true;
wezterm.enable = true;
zathura.enable = true;
zellij.enable = true;
};