style: run nixpkgs-fmt
This commit is contained in:
parent
218d57fda3
commit
237a788e7d
2 changed files with 107 additions and 129 deletions
53
flake.nix
53
flake.nix
|
@ -2,11 +2,12 @@
|
||||||
description = "A highly structured configuration database.";
|
description = "A highly structured configuration database.";
|
||||||
|
|
||||||
nixConfig.extra-experimental-features = "nix-command flakes ca-references";
|
nixConfig.extra-experimental-features = "nix-command flakes ca-references";
|
||||||
nixConfig.extra-substituters = "https://nrdxp.cachix.org https://nix-community.cachix.org";
|
nixConfig.extra-substituters =
|
||||||
nixConfig.extra-trusted-public-keys = "nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
|
"https://nrdxp.cachix.org https://nix-community.cachix.org";
|
||||||
|
nixConfig.extra-trusted-public-keys =
|
||||||
|
"nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
|
||||||
|
|
||||||
inputs =
|
inputs = {
|
||||||
{
|
|
||||||
nixos.url = "github:nixos/nixpkgs/release-21.05";
|
nixos.url = "github:nixos/nixpkgs/release-21.05";
|
||||||
latest.url = "github:nixos/nixpkgs/nixos-unstable";
|
latest.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
@ -50,21 +51,9 @@
|
||||||
# end ANTI CORRUPTION LAYER
|
# end ANTI CORRUPTION LAYER
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = { self, digga, bud, nixos, home, nixos-hardware, nur, agenix
|
||||||
{ self
|
, nvfetcher, deploy, ... }@inputs:
|
||||||
, digga
|
digga.lib.mkFlake {
|
||||||
, bud
|
|
||||||
, nixos
|
|
||||||
, home
|
|
||||||
, nixos-hardware
|
|
||||||
, nur
|
|
||||||
, agenix
|
|
||||||
, nvfetcher
|
|
||||||
, deploy
|
|
||||||
, ...
|
|
||||||
} @ inputs:
|
|
||||||
digga.lib.mkFlake
|
|
||||||
{
|
|
||||||
inherit self inputs;
|
inherit self inputs;
|
||||||
|
|
||||||
channelsConfig = { allowUnfree = true; };
|
channelsConfig = { allowUnfree = true; };
|
||||||
|
@ -89,16 +78,14 @@
|
||||||
sharedOverlays = [
|
sharedOverlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
__dontExport = true;
|
__dontExport = true;
|
||||||
lib = prev.lib.extend (lfinal: lprev: {
|
lib = prev.lib.extend (lfinal: lprev: { our = self.lib; });
|
||||||
our = self.lib;
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = {
|
nixos = {
|
||||||
hostDefaults = {
|
hostDefaults = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
channelName = "nixos";
|
channelName = "latest";
|
||||||
imports = [ (digga.lib.importModules ./modules) ];
|
imports = [ (digga.lib.importModules ./modules) ];
|
||||||
externalModules = [
|
externalModules = [
|
||||||
{ lib.our = self.lib; }
|
{ lib.our = self.lib; }
|
||||||
|
@ -112,7 +99,7 @@
|
||||||
|
|
||||||
imports = [ (digga.lib.importHosts ./hosts) ];
|
imports = [ (digga.lib.importHosts ./hosts) ];
|
||||||
hosts = {
|
hosts = {
|
||||||
/* set host specific properties here */
|
# set host specific properties here
|
||||||
NixOS = { };
|
NixOS = { };
|
||||||
};
|
};
|
||||||
importables = rec {
|
importables = rec {
|
||||||
|
@ -130,13 +117,7 @@
|
||||||
externalModules = [ ];
|
externalModules = [ ];
|
||||||
importables = rec {
|
importables = rec {
|
||||||
profiles = digga.lib.rakeLeaves ./users/profiles;
|
profiles = digga.lib.rakeLeaves ./users/profiles;
|
||||||
suites = with profiles; rec {
|
suites = with profiles; rec { base = [ direnv git ]; };
|
||||||
base = [ direnv git ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
users = {
|
|
||||||
nixos = { suites, ... }: { imports = suites.base; };
|
|
||||||
}; # digga.lib.importers.rakeLeaves ./users/hm;
|
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
infinidoge = { suites, ... }: { imports = suites.base; };
|
infinidoge = { suites, ... }: { imports = suites.base; };
|
||||||
|
@ -145,7 +126,8 @@
|
||||||
|
|
||||||
devshell = ./shell;
|
devshell = ./shell;
|
||||||
|
|
||||||
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
|
homeConfigurations =
|
||||||
|
digga.lib.mkHomeConfigurations self.nixosConfigurations;
|
||||||
|
|
||||||
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { };
|
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { };
|
||||||
|
|
||||||
|
@ -153,10 +135,7 @@
|
||||||
templates.bud.path = ./.;
|
templates.bud.path = ./.;
|
||||||
templates.bud.description = "bud template";
|
templates.bud.description = "bud template";
|
||||||
|
|
||||||
}
|
} // {
|
||||||
//
|
|
||||||
{
|
|
||||||
budModules = { devos = import ./bud; };
|
budModules = { devos = import ./bud; };
|
||||||
}
|
};
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ profiles, ... }:
|
{ profiles, ... }: {
|
||||||
{
|
|
||||||
# build with: `bud build bootstrap bootstrapIso`
|
# build with: `bud build bootstrap bootstrapIso`
|
||||||
# reachable on the local link via ssh root@fe80::47%eno1
|
# reachable on the local link via ssh root@fe80::47%eno1
|
||||||
# where 'eno1' is replaced by your own machine's network
|
# where 'eno1' is replaced by your own machine's network
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue