add git-diff to path and some small tidying
This commit is contained in:
parent
0e9e741ae3
commit
78a5e913cf
|
@ -1,10 +1,21 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: let
|
||||||
|
gitPackage = pkgs.gitAndTools.gitFull;
|
||||||
|
in {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
package = pkgs.gitAndTools.gitFull;
|
package = gitPackage;
|
||||||
userName = "chaos";
|
userName = "chaos";
|
||||||
userEmail = "chaoticryptidz@owo.monster";
|
userEmail = "chaos@owo.monster";
|
||||||
extraConfig = {credential = {helper = "store";};};
|
extraConfig = {credential.helper = "store";};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.runCommand "git-extras" {} (let
|
||||||
|
gitLibExec = "${gitPackage}/libexec/git-core";
|
||||||
|
in ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s ${gitLibExec}/git-diff $out/bin/git-diff
|
||||||
|
''))
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,12 @@
|
||||||
nixosConfig,
|
nixosConfig,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (lib.lists) optional;
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
|
||||||
homeManagerLib = inputs.home-manager.lib.hm;
|
homeManagerLib = inputs.home-manager.lib.hm;
|
||||||
|
|
||||||
fontSizesAll = {
|
fontSizesAll = {
|
||||||
|
@ -18,10 +22,16 @@
|
||||||
if fontSizesAll ? nixosConfig.networking.hostName
|
if fontSizesAll ? nixosConfig.networking.hostName
|
||||||
then fontSizesAll.${nixosConfig.networking.hostName}
|
then fontSizesAll.${nixosConfig.networking.hostName}
|
||||||
else fontSizesAll.default;
|
else fontSizesAll.default;
|
||||||
in {
|
|
||||||
imports = with tree; [home.gui.base home.apps.kitty];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [dconf2nix gnome.dconf-editor xclip];
|
isWayland = nixosConfig.services.xserver.displayManager.gdm.wayland;
|
||||||
|
in {
|
||||||
|
imports = with tree; [home.gui.base home.apps.kitty] ++ (optional isWayland home.apps.rofi);
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
dconf2nix
|
||||||
|
gnome.dconf-editor
|
||||||
|
xclip
|
||||||
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
SAL_USE_VCLPLUGIN = "gtk3"; # GTK3 on LibreOffice
|
SAL_USE_VCLPLUGIN = "gtk3"; # GTK3 on LibreOffice
|
||||||
|
@ -126,17 +136,18 @@ in {
|
||||||
area-screenshot-clip = ["<Shift>Print"];
|
area-screenshot-clip = ["<Shift>Print"];
|
||||||
screenshot = [];
|
screenshot = [];
|
||||||
screenshot-clip = ["Print"];
|
screenshot-clip = ["Print"];
|
||||||
|
search = mkIf isWayland ["<Alt>d"];
|
||||||
custom-keybindings = [
|
custom-keybindings = [
|
||||||
# Rofi & Kitty
|
# Rofi & Kitty
|
||||||
#"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/rofi/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/rofi/"
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/kitty/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/kitty/"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
#"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/rofi" = {
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/rofi" = mkIf (!isWayland) {
|
||||||
# binding = "<Alt>d";
|
binding = "<Alt>d";
|
||||||
# command = "rofi -show run";
|
command = "rofi -show run";
|
||||||
# name = "rofi";
|
name = "rofi";
|
||||||
#};
|
};
|
||||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/kitty" = {
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/kitty" = {
|
||||||
binding = "<Alt>Return";
|
binding = "<Alt>Return";
|
||||||
command = "kitty";
|
command = "kitty";
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
inputs.gitlab_artifacts_sync.nixosModules.default
|
inputs.gitlab_artifacts_sync.nixosModules.default
|
||||||
inputs.piped-flake.nixosModules.default
|
inputs.piped-flake.nixosModules.default
|
||||||
|
|
||||||
tree.modules.nixos.rclone-serve
|
tree.modules.nixos.rcloneServe
|
||||||
tree.modules.nixos.rclone-sync
|
tree.modules.nixos.rcloneSync
|
||||||
tree.modules.nixos.secrets
|
tree.modules.nixos.secrets
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
profiles.base
|
profiles.base
|
||||||
users.root
|
users.root
|
||||||
|
|
||||||
modules.nixos.rclone-serve
|
modules.nixos.rcloneServe
|
||||||
modules.nixos.rclone-sync
|
modules.nixos.rcloneSync
|
||||||
modules.nixos.secrets
|
modules.nixos.secrets
|
||||||
])
|
])
|
||||||
++ [
|
++ [
|
||||||
|
|
Loading…
Reference in a new issue