mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
30
devShells/_default.nix
Normal file
30
devShells/_default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ inputs', ... }:
|
||||
let
|
||||
inherit (inputs'.unstable) lib;
|
||||
pkgs = inputs'.unstable.legacyPackages;
|
||||
in
|
||||
lib.pipe ./. [
|
||||
builtins.readDir
|
||||
builtins.attrNames
|
||||
(builtins.filter (x: x != "_default.nix"))
|
||||
(map (
|
||||
x:
|
||||
let
|
||||
fullPath = ./. + "/${x}";
|
||||
in
|
||||
{
|
||||
${lib.removeSuffix ".nix" x} = lib.callPackageWith (
|
||||
pkgs
|
||||
// pkgs.xorg
|
||||
// {
|
||||
inherit inputs';
|
||||
self' = inputs'.self;
|
||||
# npins sources if i ever use them
|
||||
# sources = lib.mapAttrs (_: pkgs.npins.mkSource) (lib.importJSON "${self}/packages/sources.json").pins;
|
||||
}
|
||||
) fullPath { };
|
||||
}
|
||||
))
|
||||
|
||||
lib.mergeAttrsList
|
||||
]
|
||||
1
devShells/default.nix
Normal file
1
devShells/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ mkShellNoCC, sops }: mkShellNoCC { packages = [ sops ]; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue