CLI Improvements
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: init install link unlink rebuild update purge edit gen-hardware help
|
.PHONY: init install link unlink rebuild update purge edit hw help
|
||||||
|
|
||||||
NIXOS_DIR := /etc/nixos
|
NIXOS_DIR := /etc/nixos
|
||||||
REPO_DIR := $(shell pwd)
|
REPO_DIR := $(shell pwd)
|
||||||
@@ -14,7 +14,7 @@ help:
|
|||||||
@echo "NixOS Config"
|
@echo "NixOS Config"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " make init - first time setup"
|
@echo " make init - first time setup"
|
||||||
@echo " make gen-hardware - generate hardware-configuration.nix"
|
@echo " make hw - generate hardware-configuration.nix"
|
||||||
@echo " make rebuild - rebuild nixos"
|
@echo " make rebuild - rebuild nixos"
|
||||||
@echo " make update - upgrade + rebuild"
|
@echo " make update - upgrade + rebuild"
|
||||||
@echo " make purge - garbage collect"
|
@echo " make purge - garbage collect"
|
||||||
@@ -23,7 +23,7 @@ help:
|
|||||||
@echo " make edit - edit settings.nix"
|
@echo " make edit - edit settings.nix"
|
||||||
|
|
||||||
init:
|
init:
|
||||||
@$(MAKE) --no-print-directory gen-hardware
|
@$(MAKE) --no-print-directory hw
|
||||||
@$(MAKE) --no-print-directory link
|
@$(MAKE) --no-print-directory link
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "done. run 'make rebuild' when ready"
|
@echo "done. run 'make rebuild' when ready"
|
||||||
@@ -60,7 +60,7 @@ purge:
|
|||||||
check:
|
check:
|
||||||
nix-instantiate '<nixpkgs/nixos>' -A system --dry-run
|
nix-instantiate '<nixpkgs/nixos>' -A system --dry-run
|
||||||
|
|
||||||
gen-hardware:
|
hw:
|
||||||
sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
|
sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
|
||||||
|
|
||||||
edit:
|
edit:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
./modules/services.nix
|
./modules/services.nix
|
||||||
./modules/aliases.nix
|
./modules/aliases.nix
|
||||||
./modules/assets.nix
|
./modules/assets.nix
|
||||||
./modules/home-manager.nix
|
./modules/home.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"nix:edit" = "$EDITOR /etc/nixos";
|
"nix:edit" = "$EDITOR /etc/nixos";
|
||||||
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
|
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
|
||||||
"nix:pull" = "cd /etc/nixos && git pull";
|
"nix:pull" = "cd /etc/nixos && git pull";
|
||||||
"nix:gen-hardware" = "sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
|
"nix:hw" = "sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
|
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ let
|
|||||||
./home/packages.nix
|
./home/packages.nix
|
||||||
./home/git.nix
|
./home/git.nix
|
||||||
./home/gnome.nix
|
./home/gnome.nix
|
||||||
|
./home/cli.nix
|
||||||
./home/librewolf.nix
|
./home/librewolf.nix
|
||||||
./home/zed.nix
|
./home/zed.nix
|
||||||
./home/ghostty.nix
|
./home/ghostty.nix
|
||||||
44
modules/home/cli.nix
Normal file
44
modules/home/cli.nix
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
add_newline = false;
|
||||||
|
character = {
|
||||||
|
success_symbol = "[➜](bold green)";
|
||||||
|
error_symbol = "[➜](bold red)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
git = true;
|
||||||
|
icons = "auto";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.bat = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
theme = "Catppuccin Macchiato";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
accent-color = "pink";
|
accent-color = "pink";
|
||||||
|
clock-show-weekday = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"org/gnome/system/location" = {
|
"org/gnome/system/location" = {
|
||||||
@@ -15,5 +16,14 @@
|
|||||||
picture-uri = "file://${config.home.homeDirectory}/Assets/wallpapers/unicat.png";
|
picture-uri = "file://${config.home.homeDirectory}/Assets/wallpapers/unicat.png";
|
||||||
picture-uri-dark = "file://${config.home.homeDirectory}/Assets/wallpapers/unicat.png";
|
picture-uri-dark = "file://${config.home.homeDirectory}/Assets/wallpapers/unicat.png";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/peripherals/mouse" = {
|
||||||
|
accel-profile = "flat";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
|
home = [ "<Super>e" ];
|
||||||
|
www = [ "<Super>b" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user