Compare commits

..

No commits in common. "9b36d4bd8e8849b1560eec13aca34ceb29074c77" and "edc2ff2282d6467b5d4f5f1bc70a876b4fe3f69e" have entirely different histories.

8 changed files with 21 additions and 93 deletions

View file

@ -48,7 +48,6 @@
modules = [
inputs.rose-pine.homeManagerModules.rose-pine
./modules/home/shellAbbrs.nix
./modules/home/iconTheme.nix
./home
];
};

View file

@ -6,11 +6,6 @@
rose-pine.pointerCursor.enable = true;
home.iconTheme = {
package = pkgs.kora-icon-theme;
name = "kora";
};
fonts.fontconfig.defaultFonts.monospace = [ "Maple Mono NF" ];
imports = [

View file

@ -1,10 +1,13 @@
{ config, ... }:
{ pkgs, ... }:
{
gtk = {
enable = true;
rose-pine.enable = true;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
iconTheme = {
package = pkgs.kora-icon-theme;
name = "kora";
};
};
}

View file

@ -19,21 +19,11 @@
# Tell nix what version it is.
nix.package = pkgs.nix;
nix = {
# Enable flakes.
settings.experimental-features = [
"nix-command"
"flakes"
];
# Disable that annoying "git tree is dirty" warning.
extraOptions = ''
warn-dirty = false
'';
# Garbage collection.
gc.automatic = true;
};
# Enable flakes.
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
xdg.configFile."nixpkgs/config.nix".text = # nix
''

View file

@ -1,10 +0,0 @@
{ ... }:
{
programs.bun = {
enable = true;
settings = {
telemetry = false;
};
};
}

View file

@ -37,6 +37,10 @@
plugins = with pkgs.tmuxPlugins; [
{
plugin = resurrect;
extraConfig = # tmux
''
set -g @resurrect-capture-pane-contents 'on'
'';
}
{

View file

@ -1,4 +1,5 @@
{
pkgs,
config,
lib,
...
@ -11,6 +12,12 @@
# drop-in weirdness.
rose-pine.enable = false;
# TODO: Set this globally and import it.
iconTheme = {
package = pkgs.kora-icon-theme;
name = "Kora";
};
settings = lib.mkMerge [
### Rose Pine ###
# TODO: Set this conditionally based on current theme.

View file

@ -1,60 +0,0 @@
{ lib, config, ... }:
with lib;
let
# https://github.com/nix-community/home-manager/blob/master/modules/misc/gtk.nix
iconThemeType = types.submodule {
options = {
package = mkOption {
type = types.nullOr types.package;
default = null;
example = literalExpression "pkgs.gnome.adwaita-icon-theme";
description = ''
Package providing the icon theme. This package will be installed
to your profile. If `null` then the theme
is assumed to already be available in your profile.
'';
};
name = mkOption {
type = types.str;
example = "Adwaita";
description = "The name of the icon theme within the package.";
};
};
};
in
{
options = {
home = {
iconTheme = mkOption {
type = types.nullOr iconThemeType;
default = null;
description = ''
The icon theme to use.
'';
};
};
};
config =
let
cfg = config.home.iconTheme;
in
{
gtk = mkIf config.gtk.enable (mkDefault {
iconTheme = {
name = cfg.name;
package = cfg.package;
};
});
services.dunst = mkIf config.services.dunst.enable (mkDefault {
iconTheme = {
name = cfg.name;
package = cfg.package;
};
});
};
}