Recently Written · git

nixtoo-genux

Declarative Nix package manager setup. A new linux distro.

git clone https://github.com/equwal/nixtoo-genux

Log | Files | Refs


flake.nix (928 bytes)

1 {
2   description = "Flake setup";
3 
4   inputs = {
5     nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6     flakey-profile.url = "github:lf-/flakey-profile";
7   };
8 
9   outputs = { self, nixpkgs, flakey-profile, ... }: 
10     let
11       system = "x86_64-linux";
12       pkgs = import nixpkgs {
13         inherit system;
14         config.allowUnfree = true;
15       };
16       
17       packageList = with pkgs; [
18         # Add your packages here - one per line
19         hello
20         firefox
21         git
22         # zzz automatically added by alias
23       ];
24     in {
25       packages.${system} = {
26         default = pkgs.symlinkJoin {
27           name = "my-packages";
28           paths = packageList;
29         };
30         
31         profile = flakey-profile.lib.mkProfile {
32           inherit pkgs;
33           paths = packageList;
34         };
35       };
36       
37       devShells.${system}.default = pkgs.mkShell {
38         buildInputs = packageList;
39       };
40     };
41 }