style: run nixpkgs-fmt

This commit is contained in:
Infinidoge 2021-09-01 10:33:37 -04:00
parent 218d57fda3
commit 237a788e7d
2 changed files with 107 additions and 129 deletions

View file

@ -2,11 +2,12 @@
description = "A highly structured configuration database.";
nixConfig.extra-experimental-features = "nix-command flakes ca-references";
nixConfig.extra-substituters = "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=";
nixConfig.extra-substituters =
"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";
latest.url = "github:nixos/nixpkgs/nixos-unstable";
@ -50,21 +51,9 @@
# end ANTI CORRUPTION LAYER
};
outputs =
{ self
, digga
, bud
, nixos
, home
, nixos-hardware
, nur
, agenix
, nvfetcher
, deploy
, ...
} @ inputs:
digga.lib.mkFlake
{
outputs = { self, digga, bud, nixos, home, nixos-hardware, nur, agenix
, nvfetcher, deploy, ... }@inputs:
digga.lib.mkFlake {
inherit self inputs;
channelsConfig = { allowUnfree = true; };
@ -89,16 +78,14 @@
sharedOverlays = [
(final: prev: {
__dontExport = true;
lib = prev.lib.extend (lfinal: lprev: {
our = self.lib;
});
lib = prev.lib.extend (lfinal: lprev: { our = self.lib; });
})
];
nixos = {
hostDefaults = {
system = "x86_64-linux";
channelName = "nixos";
channelName = "latest";
imports = [ (digga.lib.importModules ./modules) ];
externalModules = [
{ lib.our = self.lib; }
@ -112,7 +99,7 @@
imports = [ (digga.lib.importHosts ./hosts) ];
hosts = {
/* set host specific properties here */
# set host specific properties here
NixOS = { };
};
importables = rec {
@ -130,13 +117,7 @@
externalModules = [ ];
importables = rec {
profiles = digga.lib.rakeLeaves ./users/profiles;
suites = with profiles; rec {
base = [ direnv git ];
};
};
users = {
nixos = { suites, ... }: { imports = suites.base; };
}; # digga.lib.importers.rakeLeaves ./users/hm;
suites = with profiles; rec { base = [ direnv git ]; };
};
users = {
infinidoge = { suites, ... }: { imports = suites.base; };
@ -145,7 +126,8 @@
devshell = ./shell;
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
homeConfigurations =
digga.lib.mkHomeConfigurations self.nixosConfigurations;
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { };
@ -153,10 +135,7 @@
templates.bud.path = ./.;
templates.bud.description = "bud template";
}
//
{
} // {
budModules = { devos = import ./bud; };
}
;
};
}

View file

@ -1,5 +1,4 @@
{ profiles, ... }:
{
{ profiles, ... }: {
# build with: `bud build bootstrap bootstrapIso`
# reachable on the local link via ssh root@fe80::47%eno1
# where 'eno1' is replaced by your own machine's network