added simple flakes to start with
This commit is contained in:
parent
77af092fbf
commit
efbf64c10f
3 changed files with 42 additions and 1 deletions
23
fhs/flake.nix
Normal file
23
fhs/flake.nix
Normal 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;
|
||||
});
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
description = "My collection of flake templates";
|
||||
|
||||
outputs = { }: {
|
||||
outputs = { self }: {
|
||||
trivial = {
|
||||
path = ./trivial;
|
||||
description = "The default flake template most non-specialised flakes should be based on";
|
||||
|
|
18
trivial/flake.nix
Normal file
18
trivial/flake.nix
Normal 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 = [ ];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue