re-organize home-modules

This commit is contained in:
Jonas Röger 2024-10-19 14:35:08 +02:00
parent f1d7b850fa
commit b95ebd8efc
Signed by: jonas
GPG Key ID: 4000EB35E1AE0F07
52 changed files with 36 additions and 30 deletions

View File

@ -89,7 +89,7 @@
) )
inputs.plasma-manager.homeManagerModules.plasma-manager inputs.plasma-manager.homeManagerModules.plasma-manager
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
./home/jonas/home.nix ./home/jonas.nix
]; ];
# Optionally use extraSpecialArgs # Optionally use extraSpecialArgs

View File

@ -4,21 +4,21 @@
... ...
}: rec { }: rec {
imports = [ imports = [
./borg.nix ../modules/home/borg.nix
./doom.nix ../modules/home/doom
./dunst ../modules/home/dunst
./firefox.nix ../modules/home/firefox.nix
./hyprland ../modules/home/hyprland
./kitty ../modules/home/kitty
./ranger ../modules/home/ranger
./ssh.nix ../modules/home/ssh.nix
./themes/gtk ../modules/home/themes/gtk
./themes/qt ../modules/home/themes/qt
./waybar ../modules/home/waybar
./wlogout ../modules/home/wlogout
./wofi ../modules/home/wofi
./yubikey.nix ../modules/home/yubikey.nix
./zsh.nix ../modules/home/zsh
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should

View File

View File

@ -0,0 +1,5 @@
{...}: {
imports = [
./doom.nix
];
}

View File

@ -111,17 +111,17 @@ in {
enable = true; enable = true;
configFile = { configFile = {
"doom-config/splash.png" = { "doom-config/splash.png" = {
source = ./static/doom-config/splash.png; source = ./static/splash.png;
}; };
"doom-config/config.el" = { "doom-config/config.el" = {
source = ./static/doom-config/config.el; source = ./static/config.el;
}; };
"doom-config/init.el" = { "doom-config/init.el" = {
source = ./static/doom-config/init.el; source = ./static/init.el;
onChange = "${doom-setup} sync --force -e"; onChange = "${doom-setup} sync --force -e";
}; };
"doom-config/packages.el" = { "doom-config/packages.el" = {
source = ./static/doom-config/packages.el; source = ./static/packages.el;
onChange = "${doom-setup} sync --force -u -e"; onChange = "${doom-setup} sync --force -u -e";
}; };
"doom-emacs" = { "doom-emacs" = {
@ -136,7 +136,7 @@ in {
emacs = { emacs = {
name = "Doom Emacs"; name = "Doom Emacs";
genericName = "Text Editor"; genericName = "Text Editor";
icon = ./static/doom-config/icon.png; icon = ./static/icon.png;
exec = "${wrapped-emacs}/bin/emacs %F"; exec = "${wrapped-emacs}/bin/emacs %F";
terminal = false; terminal = false;
categories = ["Application" "Development" "TextEditor"]; categories = ["Application" "Development" "TextEditor"];
@ -148,7 +148,7 @@ in {
emacsclient = { emacsclient = {
name = "Doom Emacs (Client)"; name = "Doom Emacs (Client)";
genericName = "Text Editor"; genericName = "Text Editor";
icon = ./static/doom-config/icon.png; icon = ./static/icon.png;
exec = '' exec = ''
sh -c "if [ -n \\"\\$*\\" ]; then exec ${wrapped-emacs}/bin/emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F sh -c "if [ -n \\"\\$*\\" ]; then exec ${wrapped-emacs}/bin/emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F
''; '';

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 165 KiB

View File

@ -1,5 +1,4 @@
{ {
config,
pkgs, pkgs,
... ...
}: { }: {
@ -17,7 +16,7 @@
enable = true; enable = true;
settings = { settings = {
default = { default = {
path = ../static/wallpaper/stones.jpg; path = ../../../static/wallpaper/stones.jpg;
}; };
}; };
}; };

View File

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

View File

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

View File

@ -1,6 +1,5 @@
{ {
config, config,
pkgs,
... ...
}: let }: let
sshKeys = name: { sshKeys = name: {

View File

@ -9,7 +9,7 @@
mutableTrust = false; mutableTrust = false;
publicKeys = [ publicKeys = [
{ {
source = ./static/keys/my_pub.asc; source = ../../static/keys/my_pub.asc;
trust = "ultimate"; trust = "ultimate";
} }
]; ];

View File

@ -0,0 +1,7 @@
{
...
}: {
imports = [
./zsh.nix
];
}

View File

@ -1,6 +1,5 @@
{ {
config, config,
pkgs,
... ...
}: let }: let
omz_custom = "${config.home.homeDirectory}/.config/omz_custom"; omz_custom = "${config.home.homeDirectory}/.config/omz_custom";

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 642 KiB

After

Width:  |  Height:  |  Size: 642 KiB