2019-12-03 06:18:30 +01:00
|
|
|
{
|
2019-12-05 09:36:15 +01:00
|
|
|
description = "A highly structured configuration database.";
|
2019-12-05 06:36:36 +01:00
|
|
|
|
2021-12-06 20:14:40 +01:00
|
|
|
nixConfig.extra-experimental-features = "nix-command flakes";
|
2020-08-02 06:08:41 +02:00
|
|
|
inputs =
|
|
|
|
{
|
2022-06-06 18:14:56 +02:00
|
|
|
nixos.url = "github:nixos/nixpkgs/nixos-22.05";
|
2021-08-06 03:30:40 +02:00
|
|
|
latest.url = "github:nixos/nixpkgs/nixos-unstable";
|
2021-04-02 04:10:24 +02:00
|
|
|
|
2022-04-30 20:20:49 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
2021-07-21 05:19:09 +02:00
|
|
|
digga.url = "github:divnix/digga";
|
2021-07-16 00:15:18 +02:00
|
|
|
digga.inputs.nixpkgs.follows = "nixos";
|
2022-04-30 20:20:49 +02:00
|
|
|
digga.inputs.nixpkgs-unstable.follows = "latest";
|
|
|
|
digga.inputs.latest.follows = "latest";
|
2021-07-16 00:15:18 +02:00
|
|
|
digga.inputs.nixlib.follows = "nixos";
|
2021-07-13 00:32:13 +02:00
|
|
|
digga.inputs.home-manager.follows = "home";
|
2021-11-30 01:38:56 +01:00
|
|
|
digga.inputs.deploy.follows = "deploy";
|
2021-07-16 00:15:18 +02:00
|
|
|
|
2022-02-22 01:03:10 +01:00
|
|
|
home.url = "github:nix-community/home-manager/master";
|
2022-01-13 22:05:35 +01:00
|
|
|
# home.url = "path:/home/mae/home-manager";
|
2021-02-07 22:24:41 +01:00
|
|
|
home.inputs.nixpkgs.follows = "nixos";
|
2022-06-08 12:28:15 +02:00
|
|
|
home.inputs.utils.follows = "flake-utils";
|
2021-07-16 00:15:18 +02:00
|
|
|
|
2021-03-02 04:30:47 +01:00
|
|
|
darwin.url = "github:LnL7/nix-darwin";
|
2021-11-30 01:38:56 +01:00
|
|
|
darwin.inputs.nixpkgs.follows = "nixos";
|
2021-07-16 00:15:18 +02:00
|
|
|
|
2021-11-30 01:38:56 +01:00
|
|
|
deploy.url = "github:input-output-hk/deploy-rs";
|
|
|
|
deploy.inputs.nixpkgs.follows = "nixos";
|
2022-04-30 20:20:49 +02:00
|
|
|
deploy.inputs.fenix.follows = "fenix";
|
2021-07-16 00:15:18 +02:00
|
|
|
|
2021-05-13 19:35:23 +02:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
2021-11-30 01:38:56 +01:00
|
|
|
agenix.inputs.nixpkgs.follows = "nixos";
|
2021-04-02 04:10:24 +02:00
|
|
|
|
2021-06-14 06:48:43 +02:00
|
|
|
nvfetcher.url = "github:berberman/nvfetcher";
|
2021-11-30 01:38:56 +01:00
|
|
|
nvfetcher.inputs.nixpkgs.follows = "nixos";
|
2022-04-30 20:20:49 +02:00
|
|
|
nvfetcher.inputs.flake-utils.follows = "flake-utils";
|
2021-07-16 00:15:18 +02:00
|
|
|
|
|
|
|
naersk.url = "github:nmattia/naersk";
|
2021-11-30 01:38:56 +01:00
|
|
|
naersk.inputs.nixpkgs.follows = "nixos";
|
2021-07-16 00:15:18 +02:00
|
|
|
|
2022-06-18 00:07:23 +02:00
|
|
|
# peerix.url = "github:cid-chan/peerix";
|
|
|
|
peerix.url = "github:MaeIsBad/peerix";
|
2022-06-16 19:22:10 +02:00
|
|
|
peerix.inputs.nixpkgs.follows = "nixos";
|
|
|
|
|
2021-03-02 04:30:47 +01:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
2021-08-05 14:12:48 +02:00
|
|
|
fenix.url = "github:nix-community/fenix";
|
2022-05-20 18:58:33 +02:00
|
|
|
# fenix.inputs.nixpkgs.follows = "nixos";
|
2020-08-02 06:08:41 +02:00
|
|
|
};
|
2019-12-14 05:39:25 +01:00
|
|
|
|
2021-05-13 19:35:23 +02:00
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, digga
|
|
|
|
, nixos
|
|
|
|
, home
|
|
|
|
, nixos-hardware
|
|
|
|
, agenix
|
2021-06-13 22:23:13 +02:00
|
|
|
, fenix
|
2021-06-14 06:48:43 +02:00
|
|
|
, nvfetcher
|
2021-07-08 02:31:12 +02:00
|
|
|
, deploy
|
2022-06-16 19:22:10 +02:00
|
|
|
, peerix
|
2021-05-13 19:35:23 +02:00
|
|
|
, ...
|
|
|
|
} @ inputs:
|
2021-07-16 23:01:25 +02:00
|
|
|
digga.lib.mkFlake
|
|
|
|
{
|
|
|
|
inherit self inputs;
|
|
|
|
|
|
|
|
channelsConfig = { allowUnfree = true; };
|
|
|
|
|
|
|
|
channels = {
|
|
|
|
nixos = {
|
2021-07-21 01:33:45 +02:00
|
|
|
imports = [ (digga.lib.importOverlays ./overlays) ];
|
2021-07-16 23:01:25 +02:00
|
|
|
overlays = [
|
|
|
|
agenix.overlay
|
|
|
|
nvfetcher.overlay
|
|
|
|
./pkgs/default.nix
|
2021-08-05 14:12:48 +02:00
|
|
|
|
2021-08-31 23:21:03 +02:00
|
|
|
fenix.overlay
|
2022-06-16 19:22:10 +02:00
|
|
|
peerix.overlay
|
2021-07-16 23:01:25 +02:00
|
|
|
];
|
|
|
|
};
|
2021-11-30 01:38:56 +01:00
|
|
|
latest = { };
|
2021-07-16 23:01:25 +02:00
|
|
|
};
|
2020-06-02 01:14:33 +02:00
|
|
|
|
2021-07-16 23:01:25 +02:00
|
|
|
lib = import ./lib { lib = digga.lib // nixos.lib; };
|
2020-01-05 23:39:59 +01:00
|
|
|
|
2021-07-16 23:01:25 +02:00
|
|
|
sharedOverlays = [
|
|
|
|
(final: prev: {
|
|
|
|
__dontExport = true;
|
|
|
|
lib = prev.lib.extend (lfinal: lprev: {
|
|
|
|
our = self.lib;
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
2021-01-14 08:20:00 +01:00
|
|
|
|
2021-04-22 05:44:15 +02:00
|
|
|
nixos = {
|
2021-07-16 23:01:25 +02:00
|
|
|
hostDefaults = {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
channelName = "nixos";
|
2021-09-24 20:40:53 +02:00
|
|
|
imports = [ (digga.lib.importExportableModules ./modules) ];
|
|
|
|
modules = [
|
2021-07-16 23:01:25 +02:00
|
|
|
{ lib.our = self.lib; }
|
2021-07-21 03:59:50 +02:00
|
|
|
digga.nixosModules.bootstrapIso
|
2021-07-16 23:01:25 +02:00
|
|
|
digga.nixosModules.nixConfig
|
|
|
|
home.nixosModules.home-manager
|
|
|
|
agenix.nixosModules.age
|
2022-06-16 19:22:10 +02:00
|
|
|
peerix.nixosModules.peerix
|
|
|
|
|
2021-07-16 23:01:25 +02:00
|
|
|
];
|
|
|
|
};
|
2021-07-21 01:33:45 +02:00
|
|
|
imports = [ (digga.lib.importHosts ./hosts) ];
|
2021-07-16 23:01:25 +02:00
|
|
|
hosts = {
|
|
|
|
/* set host specific properties here */
|
|
|
|
NixOS = { };
|
2021-05-27 19:41:55 +02:00
|
|
|
};
|
2021-07-16 23:01:25 +02:00
|
|
|
importables = rec {
|
2021-07-21 01:33:45 +02:00
|
|
|
profiles = digga.lib.rakeLeaves ./profiles // {
|
|
|
|
users = digga.lib.rakeLeaves ./users;
|
2021-07-16 23:01:25 +02:00
|
|
|
};
|
2021-08-05 14:12:48 +02:00
|
|
|
suites = (import ./suites) { inherit profiles; };
|
2021-05-27 19:41:55 +02:00
|
|
|
};
|
2021-04-22 05:44:15 +02:00
|
|
|
};
|
2021-07-16 23:01:25 +02:00
|
|
|
|
|
|
|
home = {
|
2021-09-24 20:40:53 +02:00
|
|
|
imports = [ (digga.lib.importExportableModules ./users/modules) ];
|
|
|
|
modules = [ ];
|
2021-07-16 23:01:25 +02:00
|
|
|
importables = rec {
|
2021-07-21 01:33:45 +02:00
|
|
|
profiles = digga.lib.rakeLeaves ./users/profiles;
|
2021-07-16 23:01:25 +02:00
|
|
|
suites = with profiles; rec {
|
|
|
|
base = [ direnv git ];
|
|
|
|
};
|
2021-05-27 19:41:55 +02:00
|
|
|
};
|
2021-07-16 23:01:25 +02:00
|
|
|
users = {
|
|
|
|
nixos = { suites, ... }: { imports = suites.base; };
|
|
|
|
}; # digga.lib.importers.rakeLeaves ./users/hm;
|
2021-04-22 05:44:15 +02:00
|
|
|
};
|
2021-01-19 08:51:23 +01:00
|
|
|
|
2021-07-16 23:01:25 +02:00
|
|
|
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
|
2021-05-02 19:35:29 +02:00
|
|
|
|
2021-07-16 23:01:25 +02:00
|
|
|
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { };
|
2021-03-15 03:14:51 +01:00
|
|
|
|
2021-07-16 23:01:25 +02:00
|
|
|
}
|
2021-04-22 05:44:15 +02:00
|
|
|
;
|
2019-12-03 06:18:30 +01:00
|
|
|
}
|