init
This commit is contained in:
commit
c610a3e284
4 changed files with 84 additions and 0 deletions
51
flake.nix
Normal file
51
flake.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
#packages = forAllSystems (pkgs: {
|
||||
# default = pkgs.callPackage ./package.nix { };
|
||||
#});
|
||||
|
||||
checks = forAllSystems (pkgs: {
|
||||
# todo add tests
|
||||
devShell = self.devShells.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
}
|
||||
# future nixos test
|
||||
# // pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
# nixos-module = pkgs.testers.runNixOSTest (import ./nixos-test.nix self);
|
||||
# }
|
||||
);
|
||||
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
# TODO populate devshell for the project
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
# TODO export module
|
||||
# nixosModules = {
|
||||
# default =
|
||||
# {
|
||||
# config,
|
||||
# lib,
|
||||
# pkgs,
|
||||
# ...
|
||||
# }:
|
||||
# {
|
||||
# imports = [ ./nixos-module.nix ];
|
||||
# services.TODSERVICENAME.package =
|
||||
# lib.mkDefault
|
||||
# self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue