2021-06-20 05:14:56 +03:00
|
|
|
{
|
|
|
|
description = "A DevOS example. And also a digga test bed.";
|
|
|
|
|
2022-01-23 01:49:51 +03:00
|
|
|
inputs = {
|
|
|
|
# Track channels with commits tested and built by hydra
|
2022-07-09 18:15:39 +03:00
|
|
|
nixos.url = "github:nixos/nixpkgs/nixos-22.05";
|
2022-01-23 01:49:51 +03:00
|
|
|
|
|
|
|
# For darwin hosts: it can be helpful to track this darwin-specific stable
|
2022-04-21 03:16:34 +03:00
|
|
|
# channel equivalent to the `nixos-*` channels for NixOS. For one, these
|
|
|
|
# channels are more likely to provide cached binaries for darwin systems.
|
|
|
|
# But, perhaps even more usefully, it provides a place for adding
|
|
|
|
# darwin-specific overlays and packages which could otherwise cause build
|
|
|
|
# failures on Linux systems.
|
2022-07-09 18:15:39 +03:00
|
|
|
nixpkgs-darwin-stable.url = "github:NixOS/nixpkgs/nixpkgs-22.05-darwin";
|
2022-01-23 01:49:51 +03:00
|
|
|
|
2022-04-28 03:21:50 +03:00
|
|
|
digga.url = "github:divnix/digga";
|
|
|
|
digga.inputs.nixpkgs.follows = "nixos";
|
2021-06-20 05:14:56 +03:00
|
|
|
|
2022-04-28 02:10:44 +03:00
|
|
|
darwin.url = "github:LnL7/nix-darwin";
|
|
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs-darwin-stable";
|
|
|
|
|
2022-07-09 18:15:39 +03:00
|
|
|
home.url = "github:nix-community/home-manager/release-22.05";
|
2022-01-23 01:49:51 +03:00
|
|
|
home.inputs.nixpkgs.follows = "nixos";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
inputs @ { self
|
|
|
|
, nixos
|
|
|
|
, nixpkgs
|
|
|
|
, nixpkgs-darwin-stable
|
|
|
|
, darwin
|
|
|
|
, digga
|
|
|
|
, home
|
|
|
|
, ...
|
|
|
|
}:
|
2021-06-20 05:14:56 +03:00
|
|
|
digga.lib.mkFlake {
|
|
|
|
|
|
|
|
inherit self inputs;
|
|
|
|
|
2022-01-23 01:49:51 +03:00
|
|
|
channels = {
|
|
|
|
nixos = { };
|
|
|
|
nixpkgs-darwin-stable = { };
|
|
|
|
};
|
2021-06-20 05:14:56 +03:00
|
|
|
|
|
|
|
nixos = ./nixos;
|
2022-01-23 01:49:51 +03:00
|
|
|
darwin = ./darwin;
|
2021-06-20 05:14:56 +03:00
|
|
|
home = ./home;
|
|
|
|
devshell = ./devshell;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|