refactor!: remove unused modules, bindings, etc.

This commit is contained in:
Moritz Böhme 2023-04-10 15:12:45 +02:00
parent b1a6d5016a
commit 5fc963c537
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
48 changed files with 93 additions and 540 deletions

View file

@ -1,9 +1,3 @@
{ config
, lib
, pkgs
, ...
}:
{
imports = [
./bin

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, inputs
, ...
}:

View file

@ -1,13 +1,8 @@
{ config
, lib
, pkgs
{ lib
, ...
}:
with lib;
let
cfg = config.my.shell;
in
{
options.my.shell = {
abbreviations = mkOption {

View file

@ -1,6 +1,4 @@
{ config
, lib
, pkgs
, rosewater
, flamingo
, pink
@ -27,12 +25,9 @@
, base
, mantle
, crust
, ...
}:
with lib;
let
cfg = config.my.theming;
in
{
home-manager.users.moritz = {
programs = {

View file

@ -1,7 +1,6 @@
{ config
, lib
, pkgs
, inputs
, ...
}:

View file

@ -1,4 +1,7 @@
{ config, lib, pkgs, ... }:
{ config
, lib
, ...
}:
with lib;
let

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,9 +1,3 @@
{ config
, lib
, pkgs
, ...
}:
{
imports = [
./config

View file

@ -1,5 +1,4 @@
{ config
, lib
{ lib
, pkgs
, ...
}:

View file

@ -1,6 +1,4 @@
{ config
, lib
, pkgs
{ pkgs
, ...
}: {
programs.steam.enable = true;

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,16 +1,9 @@
{ config
, lib
, pkgs
, ...
}:
{
imports = [
./adb.nix
./bspwm
./code.nix
./direnv.nix
./emacs.nix
./firefox.nix
./fish.nix
./git.nix
@ -31,7 +24,6 @@
./sway.nix
./thunar.nix
./nvim
./xmonad
./zathura.nix
./zsh.nix
];

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,33 +0,0 @@
{ config
, lib
, pkgs
, inputs
, ...
}:
with lib;
let
cfg = config.my.programs.emacs;
myEmacs = pkgs.emacsPgtkWithPackages;
in
{
options.my.programs.emacs.enable = mkEnableOption "emacs";
config = mkIf cfg.enable {
my.shell.aliases = {
emacs = "emacsclient -nw -a 'emacs -nw'";
};
fonts.fonts = with pkgs; [
emacs-all-the-icons-fonts
(iosevka-bin.override { variant = "aile"; })
];
users.users.moritz.packages = [ myEmacs ];
home-manager.users.moritz = {
home.sessionPath = [ "/home/moritz/.config/emacs/bin/" ];
services.emacs = {
enable = true;
package = myEmacs;
};
};
};
}

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, inputs
, ...
}:

View file

@ -1,7 +1,6 @@
{ config
, lib
, pkgs
, inputs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:
@ -161,7 +160,6 @@ in
bind = $mainMod , B , exec , rofi-bluetooth
bind = $mainMod , C , exec , rofi -show calc -modi calc -no-show-match -no-sort | wl-copy
bind = $mainMod , D , exec , hyprctl keyword general:layout dwindle
bind = $mainMod , E , exec , emacsclient -c -a emacs
bind = $mainMod , M , exec , hyprctl keyword general:layout master
bind = $mainMod , R , exec , rofi -show combi
bind = $mainMod , RETURN , exec , kitty

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -18,7 +18,7 @@ in
};
aliases =
let
applyCommon = name: command: "${command} --payee note --strict --explicit";
applyCommon = _: command: "${command} --payee note --strict --explicit";
in
mapAttrs applyCommon {
bal = "ledger bal";

View file

@ -9,7 +9,7 @@ let
cfg = config.my.programs.python;
pythonVersions = map (version: "3${toString version}") (range 8 11);
enabledVersions = filterAttrs (name: value: value.enable) cfg.versions;
enabledVersions = filterAttrs (_: value: value.enable) cfg.versions;
pythonPackages = version: attrNames pkgs."python${version}Packages";

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,50 +0,0 @@
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.xmonad;
in
{
options.my.programs.xmonad.enable = mkEnableOption "xmonad";
config = lib.mkIf cfg.enable {
services = {
xserver = {
enable = true;
layout = "de";
displayManager = {
defaultSession = "none+xmonad";
autoLogin = {
enable = true;
user = "moritz";
};
lightdm.enable = true;
};
windowManager.xmonad.enable = true;
};
};
home-manager.users.moritz =
let
xmonadPackages = haskellPackages: [
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
haskellPackages.xmonad
haskellPackages.xmobar
];
in
{
xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./xmonad.hs;
# extraPackages = xmonadPackages;
};
programs.xmobar.enable = true;
};
};
}

View file

@ -1,39 +0,0 @@
import XMonad
( Choose,
Default (def),
Full,
KeyMask,
Mirror,
Tall,
X,
XConfig (modMask, terminal),
mod4Mask,
spawn,
xmonad,
)
import XMonad.Hooks.EwmhDesktops (ewmh)
import XMonad.Util.EZConfig (additionalKeysP)
myModMask :: KeyMask
myModMask = mod4Mask
myTerminal :: String
myTerminal = "kitty"
myKeys :: [(String, X ())]
myKeys =
[ ("M-d", spawn "rofi -show combi"),
("M-e", spawn "emacsclient -c -a emacs"),
("M-f", spawn "firefox")
]
myConfig :: (XConfig (Choose Tall (Choose (Mirror Tall) Full)))
myConfig =
def
{ modMask = myModMask,
terminal = myTerminal
}
`additionalKeysP` myKeys
main :: IO ()
main = xmonad $ ewmh $ ewmhFullscreen myConfig

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,7 +1,6 @@
{ config
, lib
, pkgs
, inputs
, ...
}:

View file

@ -1,8 +1,4 @@
{ config
, lib
, pkgs
, ...
}: {
{
imports = [
./dunst.nix
./kdeconnect.nix

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:

View file

@ -1,8 +1,3 @@
{ config
, lib
, pkgs
, ...
}:
{
imports = [
./podman.nix

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}: