diff --git a/nix/README.md b/nix/README.md new file mode 100644 index 0000000..78b8257 --- /dev/null +++ b/nix/README.md @@ -0,0 +1,14 @@ +# Experimental Nix flake for general cli environment +- Basically for servers, not for my laptops. + +# How to Install +```sh +$ nix flake build +$ nix profile install .#my-packages +``` + +# How to upgrade +```sh +$ nix flake upgrade +$ nix profile upgrade my-packages +``` diff --git a/nix/flake.nix b/nix/flake.nix new file mode 100644 index 0000000..b43071e --- /dev/null +++ b/nix/flake.nix @@ -0,0 +1,25 @@ +{ + description = "A very basic flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: { + + packages.x86_64-linux.my-packages = nixpkgs.legacyPackages.x86_64-linux.buildEnv { + name = "my-packages-list"; + paths = [ + nixpkgs.legacyPackages.x86_64-linux.fish + nixpkgs.legacyPackages.x86_64-linux.git + nixpkgs.legacyPackages.x86_64-linux.curl + nixpkgs.legacyPackages.x86_64-linux.neovim + nixpkgs.legacyPackages.x86_64-linux.ripgrep + nixpkgs.legacyPackages.x86_64-linux.fzf + + nixpkgs.legacyPackages.x86_64-linux.clang-tools + ]; + }; + }; +} +