added simple flakes to start with

This commit is contained in:
twoneis 2024-04-14 02:02:59 +02:00
parent 77af092fbf
commit efbf64c10f
3 changed files with 42 additions and 1 deletions

23
fhs/flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nixpkgs-python, ... }@inputs: inputs.utils.lib.eachSystem [
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
] (system: let
pkgs = import nixpkgs {
inherit system;
};
fhs = pkgs.buildFHSUserEnv {
targetPkgs = pkgs: [ ];
runScript = ''
zsh
'';
};
in {
devShells.default = fhs.env;
});
}

View file

@ -1,7 +1,7 @@
{ {
description = "My collection of flake templates"; description = "My collection of flake templates";
outputs = { }: { outputs = { self }: {
trivial = { trivial = {
path = ./trivial; path = ./trivial;
description = "The default flake template most non-specialised flakes should be based on"; description = "The default flake template most non-specialised flakes should be based on";

18
trivial/flake.nix Normal file
View file

@ -0,0 +1,18 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, ... }@inputs: inputs.utils.lib.eachSystem [
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
] (system: let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
packages = [ ];
};
});
}