summaryrefslogtreecommitdiff
path: root/templates/nixos/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-16 21:18:46 -0400
committerseth <[email protected]>2024-10-16 23:23:33 -0400
commit19b64bed1e31489de83f0c7d1b0ec1e77e3f7c49 (patch)
treeab2d101836db1d44f09996a9bea7469dfe2ec80d /templates/nixos/flake.nix
parent43d30b3ea28ab03a2e6da5101dc2b84918f18c51 (diff)
templates: cleanup
Diffstat (limited to 'templates/nixos/flake.nix')
-rw-r--r--templates/nixos/flake.nix6
1 files changed, 4 insertions, 2 deletions
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}
];