diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | flake.lock | 63 | ||||
| -rw-r--r-- | flake.nix | 6 | ||||
| -rw-r--r-- | home.nix | 33 | ||||
| -rw-r--r-- | home/bat.nix | 11 | ||||
| -rw-r--r-- | home/eza.nix | 11 | ||||
| -rw-r--r-- | home/fzf.nix | 17 | ||||
| -rw-r--r-- | home/nix.nix | 9 | ||||
| -rw-r--r-- | home/zsh.nix | 8 | ||||
| l--------- | result | 1 |
10 files changed, 133 insertions, 27 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1cd791b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result/ @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1776562531, - "narHash": "sha256-Lh5Ns9DI67E+lSMOCGK0S+mFPy0mz0yOGiJTUXiR9JI=", + "lastModified": 1776661682, + "narHash": "sha256-X32LTSDqUdVqMy85WYdRgyt0I75wc4Lhi9j+lrCDR8w=", "owner": "nix-community", "repo": "home-manager", - "rev": "5b56ad02dc643808b8af6d5f3ff179e2ce9593f4", + "rev": "4bfce11ea820df0359f73736fd59c7e8f53641a6", "type": "github" }, "original": { @@ -22,9 +22,7 @@ }, "hypr-wellbeing": { "inputs": { - "nixpkgs": [ - "nixpkgs" - ] + "nixpkgs": "nixpkgs" }, "locked": { "lastModified": 1776620738, @@ -40,10 +38,60 @@ "type": "github" } }, + "luffy": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1776683785, + "narHash": "sha256-2wDUErTLQ50od05ySxKBZeVNs2KDq1ZcZ4Onktp6yvI=", + "owner": "DemonKingSwarn", + "repo": "luffy", + "rev": "5c75866a7719884f29665b13fa093c4f4c58d2ff", + "type": "github" + }, + "original": { + "owner": "DemonKingSwarn", + "repo": "luffy", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1776169885, "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1776169885, + "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1776169885, + "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", "owner": "nixos", "repo": "nixpkgs", "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", @@ -60,7 +108,8 @@ "inputs": { "home-manager": "home-manager", "hypr-wellbeing": "hypr-wellbeing", - "nixpkgs": "nixpkgs" + "luffy": "luffy", + "nixpkgs": "nixpkgs_3" } } }, @@ -10,7 +10,10 @@ hypr-wellbeing = { url = "github:demonkingswarn/hypr-wellbeing"; - inputs.nixpkgs.follows = "nixpkgs"; + }; + + luffy = { + url = "github:DemonKingSwarn/luffy"; }; }; @@ -18,7 +21,6 @@ let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; - in { homeConfigurations."swarn" = home-manager.lib.homeManagerConfiguration { @@ -2,23 +2,23 @@ { imports = [ + ./home/nix.nix ./home/git.nix + ./home/bat.nix + ./home/eza.nix + ./home/fzf.nix ./home/zsh.nix ./home/tmux.nix ./home/starship.nix ./home/ghostty.nix ]; - home.username = "swarn"; - home.homeDirectory = "/home/swarn"; - - home.stateVersion = "25.11"; + home = { + username = "swarn"; + homeDirectory = "/home/swarn"; - home.packages = [ - inputs.hypr-wellbeing.packages.${pkgs.system}.default - ]; + stateVersion = "25.11"; - home = { sessionPath = [ "${config.home.homeDirectory}/.local/bin" "${config.home.homeDirectory}/.local/bin/statusbar" @@ -34,17 +34,22 @@ ZDOTDIR = "${config.home.homeDirectory}/.config/zsh"; }; + + packages = with pkgs; [ + bat + eza + fzf + git + starship + tmux + inputs.hypr-wellbeing.packages.${pkgs.system}.default + inputs.luffy.packages.${system}.luffy + ]; }; programs = { home-manager.enable = true; - git.enable = true; - bat.enable = true; - tmux.enable = true; - starship.enable = true; }; systemd.user.startServices = "sd-switch"; - - } diff --git a/home/bat.nix b/home/bat.nix new file mode 100644 index 0000000..1df2f8b --- /dev/null +++ b/home/bat.nix @@ -0,0 +1,11 @@ +{ lib, ... }: + +{ + programs.bat = { + enable = true; + + config = { + theme = lib.mkForce "catppuccin-mocha"; + }; + }; +} diff --git a/home/eza.nix b/home/eza.nix new file mode 100644 index 0000000..c501dc5 --- /dev/null +++ b/home/eza.nix @@ -0,0 +1,11 @@ +{ + programs.eza = { + enable = true; + icons = "auto"; + + extraOptions = [ + "--group-directories-first" + "--no-quotes" + ]; + }; +} diff --git a/home/fzf.nix b/home/fzf.nix new file mode 100644 index 0000000..27eb86f --- /dev/null +++ b/home/fzf.nix @@ -0,0 +1,17 @@ +{ lib, ... }: + +{ + programs.fzf = { + enable = true; + colors = lib.mkForce { }; + + defaultOptions = [ + "--height 40%" + "--reverse" + "--border" + "--color=16" + ]; + + defaultCommand = "rg --files --hidden --glob=!.git/"; + }; +} diff --git a/home/nix.nix b/home/nix.nix new file mode 100644 index 0000000..5c0aec6 --- /dev/null +++ b/home/nix.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + xdg.configFile."nix/nix.conf".text = '' + experimental-features = nix-command flakes + substituters = https://cache.nixos.org https://nix-community.cachix.org + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCUSBd4= + ''; +} diff --git a/home/zsh.nix b/home/zsh.nix index 668014e..866e153 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -67,10 +67,10 @@ lf = "yazi"; dfm = "demonfm"; - ls = "eza --icons --group-directories-first"; - ll = "eza -lgh --icons --group-directories-first"; - la = "eza -lagh --icons --group-directories-first"; - tree = "eza -T --icons"; + ls = "eza"; + ll = "eza -lgh"; + la = "eza -lagh"; + tree = "eza -T"; mv = "mvg -ig"; rm = "rip -i --graveyard $HOME/.local/share/Trash"; @@ -0,0 +1 @@ +/nix/store/fp7szp7xr1f5v2m4fpgg4rdz8kn2zml9-home-manager-generation
\ No newline at end of file |
