added emacs
This commit is contained in:
parent
9d332191ea
commit
50134e07bb
9 changed files with 210 additions and 612 deletions
|
@ -54,6 +54,7 @@ in {
|
|||
lg = "lazygit";
|
||||
cd = "z";
|
||||
v = "nvim";
|
||||
e = "emacs";
|
||||
update = "sudo nixos-rebuild switch --flake \"${gitPath}#${hostname}\" --log-format internal-json &| nom --json";
|
||||
flake = "cd '${gitPath}'";
|
||||
} // cfg.extraAliases;
|
||||
|
|
|
@ -10,6 +10,15 @@ in {
|
|||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs;
|
||||
extraConfig = ''
|
||||
(setq standard-indent 2)
|
||||
(require 'evil)
|
||||
(evil-mode 1)
|
||||
'';
|
||||
extraPackages = epkgs: [
|
||||
epkgs.evil
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -37,17 +37,19 @@ in {
|
|||
enable = true;
|
||||
theme = {
|
||||
# inherit (cfg) name package;
|
||||
package = pkgs.materia-theme;
|
||||
name = "Materia-dark";
|
||||
package = pkgs.gruvbox-gtk-theme;
|
||||
name = "Gruvbox-Dark-BL";
|
||||
};
|
||||
# iconTheme = {
|
||||
# inherit (cfg.iconTheme) name package;
|
||||
# };
|
||||
};
|
||||
# home.sessionVariables = {
|
||||
# GTK_THEME = cfg.name;
|
||||
# GTK_USE_PORTAL = "1";
|
||||
# };
|
||||
home.sessionVariables = {
|
||||
GTK_THEME = "Gruvbox-Dark-BL";
|
||||
# GTK_USE_PORTAL = "1";
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
27
modules/gui/stylix.nix
Normal file
27
modules/gui/stylix.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, ... }:
|
||||
with lib; let
|
||||
cfg = config.modules.programs.stylix;
|
||||
username = config.modules.other.system.username;
|
||||
in {
|
||||
options.modules.programs.stylix.enable = mkEnableOption "stylix";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme_background = false;
|
||||
vim_keys = true;
|
||||
update_ms = 1000;
|
||||
cpu_single_graph = true;
|
||||
clock_format = "%X";
|
||||
use_fstab = true;
|
||||
io_mode = true;
|
||||
net_sync = true;
|
||||
net_iface = "enp4s0";
|
||||
log_level = "WARNING";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue