Format using nixfmt

This commit is contained in:
2024-07-17 22:22:04 +02:00
parent a85c6f2f4b
commit 90ccaa07bd
54 changed files with 671 additions and 409 deletions

View File

@@ -21,13 +21,14 @@
};
outputs =
{ self
, nixpkgs
, nixpkgs-stable
, sops-nix
, ghettoptt
, huecli
, ...
{
self,
nixpkgs,
nixpkgs-stable,
sops-nix,
ghettoptt,
huecli,
...
}@inputs:
let
system = "x86_64-linux";
@@ -44,54 +45,69 @@
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
forAllSystems =
f: nixpkgs.lib.genAttrs allSystems (system: f { pkgs = import nixpkgs { inherit system; }; });
in
{
nixosConfigurations = {
prismo = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user; };
specialArgs = {
inherit inputs self user;
};
modules = [ ./hosts/prismo ];
};
magicman = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user; };
specialArgs = {
inherit inputs self user;
};
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = [
overlay-stable
ghettoptt.overlays.default
huecli.overlays.default
];
})
(
{ config, pkgs, ... }:
{
nixpkgs.overlays = [
overlay-stable
ghettoptt.overlays.default
huecli.overlays.default
];
}
)
./hosts/magicman
sops-nix.nixosModules.sops
];
};
gunter = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user sops-nix; };
specialArgs = {
inherit
inputs
self
user
sops-nix
;
};
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = [
overlay-stable
ghettoptt.overlays.default
huecli.overlays.default
];
})
(
{ config, pkgs, ... }:
{
nixpkgs.overlays = [
overlay-stable
ghettoptt.overlays.default
huecli.overlays.default
];
}
)
./hosts/gunter
sops-nix.nixosModules.sops
];
};
};
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
pre-commit
];
};
});
devShells = forAllSystems (
{ pkgs }:
{
default = pkgs.mkShell { packages = with pkgs; [ pre-commit ]; };
}
);
};
}