removed other peeps

This commit is contained in:
vali 2024-04-29 22:18:58 +02:00
commit 9005bb3f4e
31 changed files with 40 additions and 937 deletions

View file

@ -14,11 +14,6 @@ in {
description = "extra shell aliases";
default = {};
};
profiling = mkOption {
type = types.bool;
description = "enable zsh profiling";
default = false;
};
};
config = mkIf cfg.enable {
@ -36,6 +31,12 @@ in {
enable = true;
interactiveShellInit = "set fish_greeting";
plugins = [
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
{ name = "z"; src = pkgs.fishPlugins.z.src; }
{ name = "sponge"; src = pkgs.fishPlugins.sponge.src; }
{ name = "done"; src = pkgs.fishPlugins.done.src; }
{ name = "colored_man_pages"; src = pkgs.fishPlugins.colored-man-pages.src; }
{ name = "tide"; src = pkgs.fishPlugins.tide.src; }
];
shellAliases = {

View file

@ -14,8 +14,9 @@ _: {
./kitty.nix
./vivado.nix
./alacritty.nix
./firefox.nix
./firefox.nix
./steam.nix
./minecraft.nix
./emacs.nix
];
}

17
modules/gui/emacs.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.modules.programs.emacs;
username = config.modules.other.system.username;
in {
options.modules.programs.emacs.enable = mkEnableOption "emacs";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.emacs = {
enable = true;
package = pkgs.emacs;
};
};
};
}

View file

@ -47,20 +47,10 @@ in {
gtk = {
enable = true;
theme = {
inherit (cfg) name;
package = cfg.package.override {
size = "standard";
accents = [ cfg.accentColour ];
inherit (cfg) variant;
tweaks = [ "normal" ];
};
inherit (cfg) name package;
};
iconTheme = {
inherit (cfg.iconTheme) name;
package = cfg.iconTheme.package.override {
accent = cfg.accentColour;
flavor = cfg.variant;
};
inherit (cfg.iconTheme) name package;
};
gtk2 = {
configLocation = "${hmCfg.xdg.configHome}/gtk-2.0/gtkrc";

View file

@ -33,16 +33,11 @@ in {
};
home-manager.users.${username} = {
# thanks raf :3 https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/themes/qt.nix
qt = {
enable = true;
platformTheme = "qtct";
platformTheme.name = "qtct";
style = {
inherit (cfg) name;
package = cfg.package.override {
flavour = [ cfg.variant ];
accents = [ cfg.accentColour ];
};
inherit (cfg) name package;
};
};

View file

@ -11,7 +11,7 @@
media_player = "mpv.desktop";
image_viewer = "imv.desktop";
text_editor = "nvim.desktop";
terminal = "alacritty.desktop";
terminal = "kitty.desktop";
in {
/* environment.sessionVariables = {
@ -31,17 +31,11 @@ in {
XAUTHORITY = "\$XDG_RUNTIME_DIR/Xauthority";
};
*/
modules.programs.zsh.extraAliases = {
gdb = "gdb -n -x ${hmCfg.xdg.configHome}/gdb/init";
pidgin = "pidgin --config=${hmCfg.xdg.dataHome}/purple";
svn = "svn --config-dir ${hmCfg.xdg.configHome}/subversion";
wget = "wget --hsts-file=\"${hmCfg.xdg.dataHome}/wget-hsts\"";
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
config = {
common.default = "gtk";
};
};
environment.sessionVariables = {
TERMINAL = "${terminal}";
@ -55,25 +49,6 @@ in {
init-module=${hmCfg.xdg.configHome}/npm/config/npm-init.js
'';
xdg.configFile."python/pythonrc".text = ''
import os
import atexit
import readline
history = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history')
try:
readline.read_history_file(history)
except OSError:
pass
def write_history():
try:
readline.write_history_file(history)
except OSError:
pass
atexit.register(write_history)
'';
xdg = {
cacheHome = "${hmCfg.home.homeDirectory}/.cache";
configHome = "${hmCfg.home.homeDirectory}/.config";
@ -91,7 +66,6 @@ in {
"message/rfc822" = [ mail_client ];
"x-scheme-handler/mid" = [ mail_client ];
"inode/directory" = [ file_manager ];
"x-scheme-handler/heroic" = [ "heroic.desktop" ];
"audio/mp3" = [ media_player ];
"audio/ogg" = [ media_player ];
"audio/mpeg" = [ media_player ];