diff options
| author | Grisha Shipunov | 2025-01-11 03:55:19 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-11 03:55:19 +0100 |
| commit | 62e2519639faa250f43f9e80e69906a59d07a44e (patch) | |
| tree | 08d662d7674904d566d2dd7ccf85affb9ddd7cd9 /flake.nix | |
| parent | 595d4935de99cc2ff10be9eaddac498c7c38489f (diff) | |
delete legacy stuff and reformat
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 77 |
1 files changed, 41 insertions, 36 deletions
@@ -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; + }; +} |
