new(nix): Experimental nix config
This commit is contained in:
parent
df46ec7453
commit
c67a385937
2 changed files with 39 additions and 0 deletions
14
nix/README.md
Normal file
14
nix/README.md
Normal file
|
@ -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
|
||||
```
|
25
nix/flake.nix
Normal file
25
nix/flake.nix
Normal file
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue