Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
2.4 kB · 120 lines
Nix
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121{ inputs, ... }:let sharedModule = { pkgs, ... }: { nixpkgs.overlays = [ ( final: prev: let scriptPkgs = inputs.scripts.packages.${prev.system}; in { inherit scriptPkgs; } ) ]; environment = { systemPackages = with pkgs; [ coreutils ]; shells = with pkgs; [ bash zsh fish ]; shellAliases = { ls = "eza --color=auto -F"; }; }; programs = { bash.enable = true; zsh.enable = true; fish.enable = true; }; home-manager.sharedModules = [ inputs.self.modules.homeManager.cli ]; };in{ flake.modules.nixos.cli = { pkgs, ... }: { imports = [ sharedModule ]; environment.systemPackages = with pkgs; [ wl-clipboard ]; environment.shellAliases = { pbcopy = "wl-copy"; pbpaste = "wl-paste"; }; }; flake.modules.darwin.cli = { imports = [ sharedModule ]; }; flake.modules.homeManager.cli = { lib, pkgs, ... }: { imports = [ inputs.nix-index-database.homeModules.nix-index ];
programs.starship = { enable = true; }; programs.nh = { enable = true; flake = "$HOME/nix-config/"; clean.enable = true; }; programs.direnv = { enable = true; nix-direnv.enable = true; };
programs.nix-index-database = { comma.enable = true; }; programs.nix-index.enable = true; programs.zoxide.enable = true; programs.eza.enable = true; home.packages = with pkgs; [ age alejandra ast-grep bat bottom coreutils curl deno dig fd _unstable.ghidra git gitleaks grc htop imagemagick _unstable.acli jq k9s kubelogin newt ngrok nodejs_24 pup python3 ripgrep rm-improved sops tree uv vim wget ] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [ _1password-cli tailscale nfs-utils ]; };}