aboutsummaryrefslogtreecommitdiff
path: root/home-manager/homeModules
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/homeModules')
-rw-r--r--home-manager/homeModules/emacs/default.nix47
-rw-r--r--home-manager/homeModules/fish.nix29
-rw-r--r--home-manager/homeModules/rofi.nix51
3 files changed, 74 insertions, 53 deletions
diff --git a/home-manager/homeModules/emacs/default.nix b/home-manager/homeModules/emacs/default.nix
index b108bab..7a8b66f 100644
--- a/home-manager/homeModules/emacs/default.nix
+++ b/home-manager/homeModules/emacs/default.nix
@@ -1,4 +1,9 @@
-{ pkgs, config, lib, ... }:
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}:
let
mkMutableSymlink = config.lib.meta.mkMutableSymlink;
@@ -10,28 +15,32 @@ in
};
config = lib.mkIf config.emacs.enable {
home.sessionVariables.EDITOR = "emacsclient -a emacs";
- home.packages = with pkgs; with python311Packages; [
- # required dependencies
- ripgrep
- fd
- tree-sitter
- emacs-all-the-icons-fonts
- libappindicator
- poppler_utils
- nixd
- nixpkgs-fmt
- sqlite
- ];
-
+ home.packages =
+ with pkgs;
+ with python311Packages;
+ [
+ # required dependencies
+ ripgrep
+ fd
+ tree-sitter
+ emacs-all-the-icons-fonts
+ libappindicator
+ poppler_utils
+ nixd
+ alejandra
+ sqlite
+ ];
+
programs.emacs = {
enable = true;
package = config.emacs.package;
- extraPackages = epkgs: with epkgs; [
- treesit-grammars.with-all-grammars
- mu4e
- ];
+ extraPackages =
+ epkgs: with epkgs; [
+ treesit-grammars.with-all-grammars
+ mu4e
+ ];
};
-
+
xdg.configFile = {
"emacs/early-init.el".source = mkMutableSymlink ./early-init.el;
"emacs/init.el".source = mkMutableSymlink ./init.el;
diff --git a/home-manager/homeModules/fish.nix b/home-manager/homeModules/fish.nix
index 7591383..b539e84 100644
--- a/home-manager/homeModules/fish.nix
+++ b/home-manager/homeModules/fish.nix
@@ -1,6 +1,9 @@
-{ pkgs, config, lib, ... }:
-
{
+ pkgs,
+ config,
+ lib,
+ ...
+}: {
options = {
fish.enable = lib.mkEnableOption "enable fish";
};
@@ -9,18 +12,26 @@
enable = true;
nix-direnv.enable = true;
};
-
+
+ programs.nix-index.enableFishIntegration = true;
+
programs.fish = {
enable = true;
plugins = [
- { name = "pure"; src = pkgs.fishPlugins.pure.src; }
- { name = "autopair"; src = pkgs.fishPlugins.autopair.src; }
+ {
+ name = "pure";
+ src = pkgs.fishPlugins.pure.src;
+ }
+ {
+ name = "autopair";
+ src = pkgs.fishPlugins.autopair.src;
+ }
];
interactiveShellInit = ''
- set fish_greeting
- pokemon-colorscripts -r --no-title
- '';
-
+ set fish_greeting
+ pokemon-colorscripts -r --no-title
+ '';
+
shellAliases = {
ls = "ls --hyperlink=auto --color=auto";
};
diff --git a/home-manager/homeModules/rofi.nix b/home-manager/homeModules/rofi.nix
index 3d93f53..48434ec 100644
--- a/home-manager/homeModules/rofi.nix
+++ b/home-manager/homeModules/rofi.nix
@@ -1,37 +1,39 @@
-{ pkgs, config, lib, ... }:
-
{
+ pkgs,
+ config,
+ lib,
+ ...
+}: {
options = {
rofi.enable = lib.mkEnableOption "enable rofi";
- rofi.package = lib.mkPackageOption pkgs "rofi package" { default = [ "rofi-wayland" ]; };
+ rofi.package = lib.mkPackageOption pkgs "rofi package" {default = ["rofi"];};
};
-
+
config = lib.mkIf config.rofi.enable {
programs.rofi = {
enable = true;
package = config.rofi.package;
- theme =
- with config.lib.stylix.colors.withHashtag;
+ theme = with config.lib.stylix.colors.withHashtag;
builtins.toFile "theme.rasi" ''
- * {
- font: "FiraCode Nerd Font Medium 12";
-
- bg0: ${base01};
- bg1: ${base02};
- fg0: ${base04};
-
- accent-color: ${base03};
- urgent-color: #ffffff;
-
- background-color: transparent;
- text-color: @fg0;
-
- margin: 0;
- padding: 0;
- spacing: 0;
- }
+ * {
+ font: "FiraCode Nerd Font Medium 12";
+
+ bg0: ${base01};
+ bg1: ${base02};
+ fg0: ${base04};
+
+ accent-color: ${base03};
+ urgent-color: #ffffff;
+
+ background-color: transparent;
+ text-color: @fg0;
+
+ margin: 0;
+ padding: 0;
+ spacing: 0;
+ }
- ${builtins.readFile ./attachments/rofi-theme.rasi}'';
+ ${builtins.readFile ./attachments/rofi-theme.rasi}'';
cycle = true;
plugins = with pkgs; [
rofi-emoji
@@ -44,4 +46,3 @@
};
};
}
-