From eef77f85e149262d42c962319aa5622bdf1ade0f Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 18 Jun 2026 17:01:28 -0500 Subject: [PATCH] chore: refine git workflow, prune system configuration, and lint formatting --- .gitignore | 2 -- flake.nix | 4 +-- hosts/desktop/configuration.nix | 47 +++++---------------------------- modules/system/base.nix | 2 +- modules/system/graphical.nix | 4 +-- modules/user/apps.nix | 1 - modules/user/base.nix | 22 ++++++++++----- modules/user/graphical.nix | 7 +++-- 8 files changed, 30 insertions(+), 59 deletions(-) diff --git a/.gitignore b/.gitignore index 5dd844e..97d4c25 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,4 @@ result-* # Direnv environments .direnv/ -# Local debugging/diff logs -diff.txt diff --git a/flake.nix b/flake.nix index 4198c61..a83fca9 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -33,7 +33,7 @@ modules = [ ./hosts/desktop/hardware-configuration.nix ./hosts/desktop/configuration.nix - + home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 875d9be..f59c856 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -1,10 +1,10 @@ { config, lib, pkgs, ... }: { - imports = - [ # Include the results of the hardware scan. + imports = [ ./hardware-configuration.nix - ../../modules/system/graphical.nix ## Inject native DMS configuration + ../../modules/system/graphical.nix + ../../modules/system/base.nix # Injected Base OS Settings ]; nix.settings.experimental-features = ["nix-command" "flakes" ]; @@ -13,56 +13,21 @@ nerd-fonts.fira-code nerd-fonts.jetbrains-mono nerd-fonts.roboto-mono - ]; + ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.networkmanager.enable = true; networking.hostName = "desktop"; - virtualisation.docker.enable = true; - - time.timeZone = "America/Bogota"; - i18n.defaultLocale = "en_US.UTF-8"; - - services.pipewire = { - enable = true; - pulse.enable = true; - }; users.users.kiskaadee = { isNormalUser = true; extraGroups = [ "wheel" "docker" "networkmanager" ]; - }; + }; - # programs.firefox.enable = true; programs = { - firefox.enable = true; hyprland.enable = true; }; - environment.sessionVariables.NIXOS_OZONE_WL = "1"; - - environment.systemPackages = with pkgs; [ - git - gh - vim - docker - uv - neovim - kitty -]; - - services.openssh = { - enable = true; - ports = [ 22 ]; - settings = { - PermitRootLogin = "no"; - }; - }; - - system.stateVersion = "26.05"; # Did you read the comment? - + system.stateVersion = "26.05"; } - - diff --git a/modules/system/base.nix b/modules/system/base.nix index 7d95bf0..fb00a19 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -19,7 +19,7 @@ ports = [ 22 ]; settings.PermitRootLogin = "no"; }; - + # Ensure Wayland variables are globally set environment.sessionVariables.NIXOS_OZONE_WL = "1"; } diff --git a/modules/system/graphical.nix b/modules/system/graphical.nix index 9b8c15c..781a68e 100644 --- a/modules/system/graphical.nix +++ b/modules/system/graphical.nix @@ -12,11 +12,11 @@ systemd.enable = true; systemd.restartIfChanged = true; - + ## see: https://danklinux.com/docs/dgop/ # dgop.package = inputs.dgop.packages.${pkgs.stdenv.hostPlatform.system}.default; enableSystemMonitoring = true; enableDynamicTheming = true; - enableClipboardPaste = true; + enableClipboardPaste = true; }; } diff --git a/modules/user/apps.nix b/modules/user/apps.nix index 30c5cd8..702b352 100644 --- a/modules/user/apps.nix +++ b/modules/user/apps.nix @@ -12,4 +12,3 @@ rbw ]; } - diff --git a/modules/user/base.nix b/modules/user/base.nix index 6a4d79a..33716ca 100644 --- a/modules/user/base.nix +++ b/modules/user/base.nix @@ -4,7 +4,7 @@ programs = { # Version Control git = { - enable = true; + enable = true; settings = { user = { name = "kiskaadee"; @@ -14,6 +14,17 @@ st = "status"; co = "checkout"; br = "branch"; + + # Undo/Modify + unstage = "reset HEAD --"; + amend = "commit --amend --no-edit"; + undo = "reset --soft HEAD~1"; + + # Workflow + sync = "!git fetch -p && git pull"; + main = "checkout main"; + last = "log -1 HEAD~1"; + }; core.editor = "nvim"; init.defaultBranch = "main"; @@ -53,9 +64,9 @@ vw = "repo view --web"; }; }; - }; + }; - ### Navigation + ### Navigation zoxide = { enable = true; enableBashIntegration = true; @@ -67,13 +78,13 @@ }; eza = { - enable = true; + enable = true; enableBashIntegration = true; extraOptions = ["--group-directories-first" "--header" "--icons"]; }; tealdeer = { - enable = true; + enable = true; settings.updates.auto_update = true; }; }; @@ -84,4 +95,3 @@ bc qpdf tty-clock grim slurp swappy libnotify fastfetch ]; } - diff --git a/modules/user/graphical.nix b/modules/user/graphical.nix index 9d899ae..8e9b04b 100644 --- a/modules/user/graphical.nix +++ b/modules/user/graphical.nix @@ -8,7 +8,7 @@ programs.neovim = { enable = true; defaultEditor = true; - viAlias = true; + viAlias = true; vimAlias = true; ## Core settings @@ -21,7 +21,7 @@ vim.opt.smartindent = true vim.opt.wrap = false vim.opt.termguicolors = true - + -- Apply colorscheme after plugins load vim.cmd("colorscheme catppuccin-mocha") ''; @@ -29,7 +29,7 @@ ## Declarative Plugin Management plugins = with pkgs.vimPlugins; [ # Color scheme - catppuccin-nvim + catppuccin-nvim # Advanced Syntax Highlighting for Python, Rust and Nix { @@ -52,4 +52,3 @@ ]; }; } -