diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-17 22:07:43 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-17 22:07:43 -0400 |
commit | 769663d4444d7b004ccb71f507c2a82535cc5234 (patch) | |
tree | 492c5ac106465dba2b490a848618b668dda519bc | |
parent | remove nix dir and move out all sub modules (diff) | |
download | dotfiles-nix-769663d4444d7b004ccb71f507c2a82535cc5234.tar.gz dotfiles-nix-769663d4444d7b004ccb71f507c2a82535cc5234.tar.bz2 dotfiles-nix-769663d4444d7b004ccb71f507c2a82535cc5234.zip |
add formatter
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 25 |
1 files changed, 17 insertions, 8 deletions
@@ -38,6 +38,16 @@ let options = import ./options.nix; systems = ["x86_64-linux"]; + perSystem = func: + builtins.listToAttrs (map (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in { + name = system; + value = (func pkgs system); + } + ) systems); + in rec { nixosConfigurations = { shinji = import ./hosts/shinji.nix { inherit inputs options; }; @@ -49,15 +59,14 @@ kaworu = nixosConfigurations.kaworu.config.home-manager.users.${options.user}.home; }; - packages = builtins.listToAttrs (map (system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in { - name = system; - value = import ./pkgs { inherit pkgs inputs system options; }; - } - ) systems); + packages = perSystem (pkgs: system: + import ./pkgs { inherit pkgs inputs system options; } + ); legacyPackages = packages; + + formatter = perSystem (pkgs: system: + pkgs.alejandra + ); }; } |