2019-12-02 22:18:30 -07:00
|
|
|
{
|
2019-12-05 01:36:15 -07:00
|
|
|
description = "A highly structured configuration database.";
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2021-11-29 19:38:56 -05:00
|
|
|
nixConfig.extra-experimental-features = "nix-command flakes";
|
2022-04-26 11:30:17 +02:00
|
|
|
nixConfig.extra-substituters = "https://nix-dram.cachix.org https://dram.cachix.org https://nrdxp.cachix.org https://nix-community.cachix.org";
|
|
|
|
nixConfig.extra-trusted-public-keys = "nix-dram.cachix.org-1:CKjZ0L1ZiqH3kzYAZRt8tg8vewAx5yj8Du/+iR8Efpg= dram.cachix.org-1:baoy1SXpwYdKbqdTbfKGTKauDDeDlHhUpC+QuuILEMY= nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
|
2021-07-16 16:09:26 -05:00
|
|
|
|
2020-08-01 22:08:41 -06:00
|
|
|
inputs =
|
|
|
|
{
|
2022-04-09 16:40:03 +02:00
|
|
|
# Track channels with commits tested and built by hydra
|
2022-06-02 10:09:42 +02:00
|
|
|
nixos.url = "github:nixos/nixpkgs/nixos-22.05";
|
2021-08-05 20:30:40 -05:00
|
|
|
latest.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-06-04 22:11:46 +02:00
|
|
|
pub-solar.url = "github:pub-solar/nixpkgs/fix/use-latest-unstable-yubikey-agent";
|
2021-04-01 21:10:24 -05:00
|
|
|
|
2022-05-02 09:49:14 +02:00
|
|
|
digga.url = "github:divnix/digga";
|
2021-07-15 17:15:18 -05:00
|
|
|
digga.inputs.nixpkgs.follows = "nixos";
|
|
|
|
digga.inputs.nixlib.follows = "nixos";
|
2021-07-12 17:32:13 -05:00
|
|
|
digga.inputs.home-manager.follows = "home";
|
2021-11-29 19:38:56 -05:00
|
|
|
digga.inputs.deploy.follows = "deploy";
|
2021-07-15 17:15:18 -05:00
|
|
|
|
|
|
|
bud.url = "github:divnix/bud";
|
|
|
|
bud.inputs.nixpkgs.follows = "nixos";
|
|
|
|
bud.inputs.devshell.follows = "digga/devshell";
|
2021-07-07 17:11:59 -05:00
|
|
|
|
2022-06-02 10:09:42 +02:00
|
|
|
home.url = "github:nix-community/home-manager/release-22.05";
|
2021-02-07 14:24:41 -07:00
|
|
|
home.inputs.nixpkgs.follows = "nixos";
|
2021-07-15 17:15:18 -05:00
|
|
|
|
2021-03-01 20:30:47 -07:00
|
|
|
darwin.url = "github:LnL7/nix-darwin";
|
2021-11-29 19:38:56 -05:00
|
|
|
darwin.inputs.nixpkgs.follows = "nixos";
|
2021-07-15 17:15:18 -05:00
|
|
|
|
2022-02-17 16:22:48 -08:00
|
|
|
deploy.url = "github:serokell/deploy-rs";
|
2021-11-29 19:38:56 -05:00
|
|
|
deploy.inputs.nixpkgs.follows = "nixos";
|
2021-07-15 17:15:18 -05:00
|
|
|
|
2021-05-13 10:35:23 -07:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
2021-11-29 19:38:56 -05:00
|
|
|
agenix.inputs.nixpkgs.follows = "nixos";
|
2021-04-01 21:10:24 -05:00
|
|
|
|
2021-06-13 21:48:43 -07:00
|
|
|
nvfetcher.url = "github:berberman/nvfetcher";
|
2021-11-29 19:38:56 -05:00
|
|
|
nvfetcher.inputs.nixpkgs.follows = "nixos";
|
2021-07-15 17:15:18 -05:00
|
|
|
|
|
|
|
naersk.url = "github:nmattia/naersk";
|
2021-11-29 19:38:56 -05:00
|
|
|
naersk.inputs.nixpkgs.follows = "nixos";
|
2021-07-15 17:15:18 -05:00
|
|
|
|
2021-03-01 20:30:47 -07:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
2021-04-01 21:10:24 -05:00
|
|
|
|
2022-04-09 16:40:03 +02:00
|
|
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
|
|
|
|
2021-05-30 21:10:28 +02:00
|
|
|
# PubSolarOS additions
|
2021-09-02 20:00:22 +02:00
|
|
|
nix-dram.url = "github:dramforever/nix-dram";
|
2022-02-22 16:51:08 +01:00
|
|
|
nix-dram.inputs.nixpkgs.follows = "latest";
|
2020-08-01 22:08:41 -06:00
|
|
|
};
|
2019-12-13 21:39:25 -07:00
|
|
|
|
2021-05-13 10:35:23 -07:00
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, digga
|
2021-07-07 19:31:12 -05:00
|
|
|
, bud
|
2021-05-13 10:35:23 -07:00
|
|
|
, nixos
|
|
|
|
, home
|
|
|
|
, nixos-hardware
|
|
|
|
, nur
|
|
|
|
, agenix
|
2021-06-13 21:48:43 -07:00
|
|
|
, nvfetcher
|
2021-07-07 19:31:12 -05:00
|
|
|
, deploy
|
2021-09-02 20:00:22 +02:00
|
|
|
, nix-dram
|
2021-05-13 10:35:23 -07:00
|
|
|
, ...
|
|
|
|
} @ inputs:
|
2021-07-16 16:01:25 -05:00
|
|
|
digga.lib.mkFlake
|
|
|
|
{
|
|
|
|
inherit self inputs;
|
|
|
|
|
|
|
|
channelsConfig = { allowUnfree = true; };
|
|
|
|
|
2022-01-31 17:47:45 +01:00
|
|
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
|
2021-07-16 16:01:25 -05:00
|
|
|
channels = {
|
|
|
|
nixos = {
|
2021-07-20 18:33:45 -05:00
|
|
|
imports = [ (digga.lib.importOverlays ./overlays) ];
|
2021-07-16 16:01:25 -05:00
|
|
|
overlays = [
|
|
|
|
nur.overlay
|
|
|
|
agenix.overlay
|
|
|
|
./pkgs/default.nix
|
|
|
|
];
|
|
|
|
};
|
2021-11-29 19:38:56 -05:00
|
|
|
latest = { };
|
2021-07-16 16:01:25 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
lib = import ./lib { lib = digga.lib // nixos.lib; };
|
2021-04-21 22:44:15 -05:00
|
|
|
|
2021-07-16 16:01:25 -05:00
|
|
|
sharedOverlays = [
|
|
|
|
(final: prev: {
|
|
|
|
__dontExport = true;
|
|
|
|
lib = prev.lib.extend (lfinal: lprev: {
|
|
|
|
our = self.lib;
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
2021-04-21 22:44:15 -05:00
|
|
|
|
|
|
|
nixos = {
|
2021-07-16 16:01:25 -05:00
|
|
|
hostDefaults = {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
channelName = "nixos";
|
2021-10-11 22:11:36 +00:00
|
|
|
imports = [ (digga.lib.importExportableModules ./modules) ];
|
|
|
|
modules = [
|
2021-07-16 16:01:25 -05:00
|
|
|
{ lib.our = self.lib; }
|
2021-07-20 20:59:50 -05:00
|
|
|
digga.nixosModules.bootstrapIso
|
2021-07-16 16:01:25 -05:00
|
|
|
digga.nixosModules.nixConfig
|
|
|
|
home.nixosModules.home-manager
|
|
|
|
agenix.nixosModules.age
|
2021-07-20 23:36:41 -05:00
|
|
|
bud.nixosModules.bud
|
2021-07-16 16:01:25 -05:00
|
|
|
];
|
|
|
|
};
|
2021-05-13 17:03:51 -07:00
|
|
|
|
2021-07-20 18:33:45 -05:00
|
|
|
imports = [ (digga.lib.importHosts ./hosts) ];
|
2021-07-16 16:01:25 -05:00
|
|
|
hosts = {
|
|
|
|
/* set host specific properties here */
|
2021-10-24 22:03:28 +02:00
|
|
|
PubSolarOS = { };
|
2021-05-27 10:41:55 -07:00
|
|
|
};
|
2021-07-16 16:01:25 -05:00
|
|
|
importables = rec {
|
2021-07-20 18:33:45 -05:00
|
|
|
profiles = digga.lib.rakeLeaves ./profiles // {
|
|
|
|
users = digga.lib.rakeLeaves ./users;
|
2021-07-16 16:01:25 -05:00
|
|
|
};
|
|
|
|
suites = with profiles; rec {
|
2021-10-24 22:03:28 +02:00
|
|
|
base = [ core users.pub-solar users.root ];
|
2022-01-31 17:47:45 +01:00
|
|
|
iso = base ++ [ base-user graphical pub-solar-iso ];
|
2021-10-24 22:55:28 +02:00
|
|
|
pubsolaros = [ core full-install base-user users.root ];
|
2021-10-24 22:03:28 +02:00
|
|
|
anonymous = [ pubsolaros users.pub-solar ];
|
2022-04-30 19:58:06 +02:00
|
|
|
|
2022-05-03 00:04:52 +02:00
|
|
|
b12f = pubsolaros ++ [ users.ben social gaming mobile ];
|
2021-09-02 19:16:05 +02:00
|
|
|
biolimo = b12f ++ [ graphical ];
|
2021-09-05 22:18:08 +02:00
|
|
|
chocolatebar = b12f ++ [ graphical virtualisation ];
|
2021-07-16 16:01:25 -05:00
|
|
|
};
|
2021-05-27 10:41:55 -07:00
|
|
|
};
|
2021-04-21 22:44:15 -05:00
|
|
|
};
|
2021-07-16 16:01:25 -05:00
|
|
|
|
|
|
|
home = {
|
2021-10-11 22:11:36 +00:00
|
|
|
imports = [ (digga.lib.importExportableModules ./users/modules) ];
|
|
|
|
modules = [ ];
|
2021-07-16 16:01:25 -05:00
|
|
|
importables = rec {
|
2021-07-20 18:33:45 -05:00
|
|
|
profiles = digga.lib.rakeLeaves ./users/profiles;
|
2021-07-16 16:01:25 -05:00
|
|
|
suites = with profiles; rec {
|
2021-09-21 22:21:29 +02:00
|
|
|
base = [ direnv ];
|
2021-07-16 16:01:25 -05:00
|
|
|
};
|
2021-05-27 10:41:55 -07:00
|
|
|
};
|
2021-07-16 16:01:25 -05:00
|
|
|
users = {
|
2021-10-24 22:03:28 +02:00
|
|
|
pub-solar = { suites, ... }: { imports = suites.base; };
|
2021-09-21 22:21:29 +02:00
|
|
|
ben = { suites, ... }: { imports = suites.base; };
|
2021-07-16 16:01:25 -05:00
|
|
|
}; # digga.lib.importers.rakeLeaves ./users/hm;
|
2021-04-21 22:44:15 -05:00
|
|
|
};
|
|
|
|
|
2021-07-20 23:36:41 -05:00
|
|
|
devshell = ./shell;
|
2021-05-29 12:53:33 -07:00
|
|
|
|
2021-07-16 16:01:25 -05:00
|
|
|
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
|
2021-05-02 10:35:29 -07:00
|
|
|
|
2021-07-16 16:01:25 -05:00
|
|
|
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { };
|
|
|
|
}
|
2021-04-21 22:44:15 -05:00
|
|
|
;
|
2019-12-02 22:18:30 -07:00
|
|
|
}
|