Format using nixfmt
This commit is contained in:
84
flake.nix
84
flake.nix
@@ -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 ]; };
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user