Minor refactor

This commit is contained in:
rotterdam 2023-04-05 11:46:03 -03:00
parent b9f445c747
commit 37c6e842f1
12 changed files with 48 additions and 69 deletions

View file

@ -11,6 +11,35 @@
enable = true;
enableFishIntegration = true;
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
tmux = {
enable = true;
clock24 = true;
extraConfig = "set -g mouse on";
};
starship = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
};
git = {
enable = true;
diff-so-fancy.enable = true;
userName = "William";
userEmail = "baduhai@proton.me";
};
btop = {
enable = true;
settings = {
color_theme = "catppuccin_mocha.theme";
theme_background = false;
proc_sorting = "cpu direct";
update_ms = 500;
};
};
micro = {
enable = true;
settings = {
@ -23,24 +52,10 @@
relativeruler = true;
};
};
starship = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
};
btop = {
enable = true;
settings = {
color_theme = "catppuccin_mocha.theme";
theme_background = false;
proc_sorting = "cpu direct";
update_ms = 500;
};
};
fish = {
enable = true;
# interactiveShellInit = "nix-your-shell fish | source"; # nix-your-shell only in unstable
# loginShellInit = "nix-your-shell fish | source";
interactiveShellInit = "nix-your-shell fish | source";
loginShellInit = "nix-your-shell fish | source";
shellAliases = {
nano = "micro";
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'';
@ -74,10 +89,5 @@
}
];
};
tmux = {
enable = true;
clock24 = true;
extraConfig = "set -g mouse on";
};
};
}

View file

@ -1,5 +1,5 @@
{ ... }:
{
imports = [ ./home.nix ./programs.nix ./services.nix ];
imports = [ ./home.nix ./programs.nix ];
}

View file

@ -2,6 +2,7 @@
{
home = {
packages = with pkgs; [ nix-your-shell ];
pointerCursor = {
size = 24;
gtk.enable = true;

View file

@ -25,10 +25,6 @@
enable = true;
enableSessionWide = true;
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
obs-studio = {
enable = true;
plugins = [
@ -36,24 +32,16 @@
pkgs.obs-studio-plugins.obs-pipewire-audio-capture
];
};
git = {
enable = true;
diff-so-fancy.enable = true;
userName = "William";
userEmail = "baduhai@proton.me";
};
fish = {
interactiveShellInit = "nix-your-shell fish | source";
loginShellInit = "nix-your-shell fish | source";
functions = {
rebuild =
"rm ~/.gtkrc-2.0; sudo nixos-rebuild switch --flake '/home/user/Projects/personal/nix-config#'";
"sudo nixos-rebuild switch --flake '/home/user/Projects/personal/nix-config#'";
rebuild-boot =
"rm ~/.gtkrc-2.0; sudo nixos-rebuild boot --flake '/home/user/Projects/personal/nix-config#'";
"sudo nixos-rebuild boot --flake '/home/user/Projects/personal/nix-config#'";
upgrade =
"rm ~/.gtkrc-2.0; nix flake lock --update-input nixpkgs --commit-lock-file /home/user/Projects/personal/nix-config; sudo nixos-rebuild switch --upgrade --flake '/home/user/Projects/personal/nix-config#'";
"nix flake update --commit-lock-file /home/user/Projects/personal/nix-config";
upgrade-boot =
"rm ~/.gtkrc-2.0; nix flake lock --update-input nixpkgs --commit-lock-file /home/user/Projects/personal/nix-config; sudo nixos-rebuild boot --upgrade --flake '/home/user/Projects/personal/nix-config#'";
"rm ~/.gtkrc-2.0; nix run '/home/user/Projects/personal/nix-config#homeConfigurations.desktop.activationPackage'";
};
};
};

View file

@ -1,5 +0,0 @@
{ config, pkgs, lib, ... }:
{
services = { kdeconnect.enable = true; };
}