From 2e78e3aa4f3dd4706fa15bee8e0bbde58c9e5ce7 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sun, 19 Feb 2023 17:04:27 +0100 Subject: format flake --- flake.nix | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/flake.nix b/flake.nix index 3541de1..7287cad 100644 --- a/flake.nix +++ b/flake.nix @@ -9,28 +9,33 @@ nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small"; }; - outputs = { self, nixpkgs, nixpkgs-unstable, my-nixpkgs, personal-webpage, ... }: { - nixosConfigurations = let - system = "x86_64-linux"; - commonModules = [ - my-nixpkgs.nixosModules.personal - ({ ... }: { - nixpkgs.overlays = - [ my-nixpkgs.overlays.personal personal-webpage.overlays.default (_: prev: { - inherit (nixpkgs-unstable.legacyPackages."${prev.system}") filtron; - })]; - }) - ]; - in { - hermes = nixpkgs.lib.nixosSystem { - inherit system; - modules = commonModules - ++ [ ./config ./config/hardware-configuration.nix ]; - }; - hermes-test = nixpkgs.lib.nixosSystem { - inherit system; - modules = commonModules ++ [ ./tests/configuration.nix ]; + outputs = + { self, nixpkgs, nixpkgs-unstable, my-nixpkgs, personal-webpage, ... }: { + nixosConfigurations = let + system = "x86_64-linux"; + commonModules = [ + my-nixpkgs.nixosModules.personal + ({ ... }: { + nixpkgs.overlays = [ + my-nixpkgs.overlays.personal + personal-webpage.overlays.default + (_: prev: { + inherit (nixpkgs-unstable.legacyPackages."${prev.system}") + filtron; + }) + ]; + }) + ]; + in { + hermes = nixpkgs.lib.nixosSystem { + inherit system; + modules = commonModules + ++ [ ./config ./config/hardware-configuration.nix ]; + }; + hermes-test = nixpkgs.lib.nixosSystem { + inherit system; + modules = commonModules ++ [ ./tests/configuration.nix ]; + }; }; }; - }; } -- cgit v1.2.3