summaryrefslogtreecommitdiff
path: root/templates/nixos
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-06 04:02:35 -0400
committerseth <[email protected]>2024-07-06 04:12:41 -0400
commit8875ad5fb466944667e5171035aa8f5c01675e93 (patch)
treee453699bbfcc7b8fb566490c8930e60c6adac07b /templates/nixos
parentc3ad734168ea13fde1e2f6ec3fbdccf78f72aada (diff)
tree-wide: alejandra -> nixfmt
Diffstat (limited to 'templates/nixos')
-rw-r--r--templates/nixos/flake.nix53
1 files changed, 29 insertions, 24 deletions
diff --git a/templates/nixos/flake.nix b/templates/nixos/flake.nix
index 235ce27..1ae27dc 100644
--- a/templates/nixos/flake.nix
+++ b/templates/nixos/flake.nix
@@ -9,31 +9,36 @@
};
};
- outputs = {nixpkgs, ...} @ inputs: let
- systems = [
- "x86_64-linux"
- "aarch64-linux"
- "x86_64-darwin"
- "aarch64-darwin"
- ];
+ outputs =
+ { nixpkgs, ... }@inputs:
+ let
+ systems = [
+ "x86_64-linux"
+ "aarch64-linux"
+ "x86_64-darwin"
+ "aarch64-darwin"
+ ];
- forAllSystems = fn: nixpkgs.lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys});
- in {
- nixosConfigurations.myComputer = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = [./configuration.nix];
- specialArgs = {inherit inputs;};
- };
-
- devShells = forAllSystems (pkgs: {
- default = pkgs.mkShellNoCC {
- packages = with pkgs; [
- just
- fzf
- ];
+ forAllSystems = fn: nixpkgs.lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys});
+ in
+ {
+ nixosConfigurations.myComputer = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [ ./configuration.nix ];
+ specialArgs = {
+ inherit inputs;
+ };
};
- });
- formatter = forAllSystems (pkgs: pkgs.alejandra);
- };
+ devShells = forAllSystems (pkgs: {
+ default = pkgs.mkShellNoCC {
+ packages = with pkgs; [
+ just
+ fzf
+ ];
+ };
+ });
+
+ formatter = forAllSystems (pkgs: pkgs.alejandra);
+ };
}