init nix tooling
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a6964a17ac94c2a40f0fd34f339a965abfc9a
This commit is contained in:
parent
fcc080871a
commit
48fa1cc852
4 changed files with 100 additions and 0 deletions
22
flake.nix
Normal file
22
flake.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
description = "Wayland Wallpaper Daemon";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref?nixos-unstable";
|
||||
outputs = {nixpkgs, ...}: let
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
forAllSystems = f:
|
||||
builtins.listToAttrs (map (system: {
|
||||
name = system;
|
||||
value = f system;
|
||||
})
|
||||
systems);
|
||||
|
||||
pkgsFor = system: nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells = forAllSystems (system: let
|
||||
pkgs = pkgsFor system;
|
||||
in {
|
||||
default = pkgs.callPackage ./shell.nix {};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue