From c67a385937a00745ed3a00deea73b0460ad35709 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Thu, 31 Oct 2024 21:17:34 +0900 Subject: [PATCH] new(nix): Experimental nix config --- nix/README.md | 14 ++++++++++++++ nix/flake.nix | 25 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 nix/README.md create mode 100644 nix/flake.nix 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 + ]; + }; + }; +} +