diff options
author | Karel Kočí <cynerd@email.cz> | 2023-01-08 11:25:01 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-01-08 11:25:01 +0100 |
commit | d5dc7479c489d17e6dcacf081c0f1b5242d99bd9 (patch) | |
tree | c12d18231cacb81ff5b69a2073894d228e3c81e7 /flake.nix | |
parent | c7a226a92d65cedd384fa29083efdbb07a6084b0 (diff) | |
download | nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.tar.gz nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.tar.bz2 nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.zip |
Format using Alejandra
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 47 |
1 files changed, 34 insertions, 13 deletions
@@ -17,18 +17,39 @@ usbkey.url = "git+https://git.cynerd.cz/usbkey?ref=modules"; }; - outputs = { self, nixpkgs, nix, nixos-hardware, flake-utils, shellrc, ... }: + outputs = { + self, + nixpkgs, + nix, + nixos-hardware, + flake-utils, + shellrc, + ... + }: with flake-utils.lib; - { - overlays.default = final: prev: import ./pkgs { inherit self; nixpkgs = prev; }; - nixosModules = import ./nixos self; - nixosConfigurations = import ./nixos/configurations.nix self; - } // eachDefaultSystem (system: { - packages = filterPackages system (flattenTree ( - import ./pkgs { inherit self; nixpkgs = nixpkgs.legacyPackages."${system}"; } - )); - devShells = filterPackages system - (import ./devShells { inherit nixpkgs; inherit shellrc; inherit system; }); - }); - + { + overlays.default = final: prev: + import ./pkgs { + inherit self; + nixpkgs = prev; + }; + nixosModules = import ./nixos self; + nixosConfigurations = import ./nixos/configurations.nix self; + } + // eachDefaultSystem (system: { + packages = filterPackages system (flattenTree ( + import ./pkgs { + inherit self; + nixpkgs = nixpkgs.legacyPackages."${system}"; + } + )); + devShells = + filterPackages system + (import ./devShells { + inherit nixpkgs; + inherit shellrc; + inherit system; + }); + formatter = nixpkgs.legacyPackages.${system}.alejandra; + }); } |