From 62e2519639faa250f43f9e80e69906a59d07a44e Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sat, 11 Jan 2025 03:55:19 +0100 Subject: delete legacy stuff and reformat --- flake.nix | 77 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 41 insertions(+), 36 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index e4c6996..6135b69 100644 --- a/flake.nix +++ b/flake.nix @@ -32,42 +32,43 @@ }; outputs = - inputs@{ self - , flake-utils - , lanzaboote - , microvm - , nixos-hardware - , nixpkgs-stable - , nixpkgs-unstable - , sops-nix - , ... - }: + inputs@{ + self, + flake-utils, + lanzaboote, + microvm, + nixos-hardware, + nixpkgs-stable, + nixpkgs-unstable, + sops-nix, + ... + }: - { - nixosConfigurations = { - toaster = nixpkgs-unstable.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - sops-nix.nixosModules.sops - lanzaboote.nixosModules.lanzaboote - nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen3 + { + nixosConfigurations = { + toaster = nixpkgs-unstable.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + sops-nix.nixosModules.sops + lanzaboote.nixosModules.lanzaboote + nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen3 - ./hosts/toaster + ./hosts/toaster - ./modules/basic-tools - ./modules/binary-caches.nix - ./modules/devtools.nix - ./modules/gnome.nix - ./modules/gnupg.nix - ./modules/radio.nix - ./modules/science.nix - ./modules/tlp.nix - ./modules/virtualization.nix - ./hosts/toaster/secure-boot.nix - ./modules/chromium.nix - ./modules/mail - ./modules/wg + ./modules/basic-tools + ./modules/binary-caches.nix + ./modules/devtools.nix + ./modules/gnome.nix + ./modules/gnupg.nix + ./modules/radio.nix + ./modules/science.nix + ./modules/tlp.nix + ./modules/virtualization.nix + ./hosts/toaster/secure-boot.nix + ./modules/chromium.nix + ./modules/mail + ./modules/wg ]; }; cloud = nixpkgs-stable.lib.nixosSystem { @@ -100,8 +101,12 @@ }; hydraJobs = let - get-toplevel = (host: nixSystem: nixSystem.config.microvm.declaredRunner or nixSystem.config.system.build.toplevel); + get-toplevel = ( + host: nixSystem: nixSystem.config.microvm.declaredRunner or nixSystem.config.system.build.toplevel + ); in nixpkgs-stable.lib.mapAttrs get-toplevel self.nixosConfigurations; - }; - } + + formatter.x86_64-linux = nixpkgs-stable.legacyPackages.x86_64-linux.nixfmt-rfc-style; + }; +} -- cgit v1.3.1