From 19b64bed1e31489de83f0c7d1b0ec1e77e3f7c49 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 16 Oct 2024 21:18:46 -0400 Subject: templates: cleanup --- templates/nixos/flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'templates/nixos/flake.nix') diff --git a/templates/nixos/flake.nix b/templates/nixos/flake.nix index 2f4f57f..f78331c 100644 --- a/templates/nixos/flake.nix +++ b/templates/nixos/flake.nix @@ -1,5 +1,5 @@ { - description = "my cool flake"; + description = "My cool Nix Flake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; @@ -14,6 +14,7 @@ { self, nixpkgs, ... }@inputs: let inherit (nixpkgs) lib; + systems = [ "x86_64-linux" "aarch64-linux" @@ -22,7 +23,7 @@ ]; forAllSystems = lib.genAttrs systems; - nixpkgsFor = forAllSystems (system: nixpkgs.legacyPackages.${system}); + nixpkgsFor = nixpkgs.legacyPackages; in { nixosConfigurations.myComputer = nixpkgs.lib.nixosSystem { @@ -43,6 +44,7 @@ packages = [ pkgs.fzf pkgs.just + # Lets you run `nixfmt` to format all of your files self.formatter.${system} ]; -- cgit v1.2.3