/flake.nix
https://github.com/mw/dots · Nix · 80 lines · 78 code · 2 blank · 0 comment · 4 complexity · 0787b01e887d9d77828b972e90d0b0ac MD5 · raw file
- {
- description = "basepkgs";
- inputs = {
- nixpkgs.url = "nixpkgs/22.05";
- };
- outputs = { self, nixpkgs }: {
- packages = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all
- (system:
- let
- pkgs = nixpkgs.legacyPackages.${system};
- isDarwin = builtins.match ".*linux" system == null;
- locale = if isDarwin then pkgs.darwin.locale else pkgs.locale;
- localePkgs =
- if isDarwin then
- [ pkgs.darwin.locale ]
- else
- [ pkgs.glibcLocales pkgs.locale ];
- in
- {
- basepkgs = pkgs.buildEnv {
- name = "basepkgs";
- paths = with pkgs; [
- bash
- bat
- coreutils-prefixed
- diffutils
- fd
- fzf
- gawk
- git
- gnutar
- htop
- jq
- lsd
- mosh
- neovim
- restic
- ripgrep
- starship
- tailscale
- tmux
- unzip
- wordnet
- zoxide
- zsh
- ] ++ localePkgs;
- extraOutputsToInstall = [ "man" "doc" ];
- };
- dev = pkgs.buildEnv {
- name = "dev";
- paths = with pkgs; [
- cargo
- clang
- clippy
- ctags
- go
- gopls
- gotools
- go-tools
- nodejs
- nodePackages.vscode-langservers-extracted
- python39
- python39Packages.black
- python39Packages.python-lsp-black
- python39Packages.python-lsp-server
- python39Packages.requests
- rnix-lsp
- rust-analyzer
- rustc
- rustfmt
- sumneko-lua-language-server
- ];
- extraOutputsToInstall = [ "man" "doc" ];
- };
- }
- );
- };
- }