flake: simplify

This commit is contained in:
Guanran Wang 2023-11-18 11:23:06 +08:00
parent 30357361fe
commit 714f92eb81
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -161,29 +161,12 @@
}; };
}; };
outputs = { outputs = {...} @ inputs: {
self, formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;
nixpkgs,
berberman,
disko,
home-manager,
hosts,
hyprland,
lanzaboote,
nix-darwin,
sops-nix,
spicetify-nix,
impermanence,
tokyonight,
metacubexd,
nixpak,
...
} @ inputs: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
### NixOS ### NixOS
nixosConfigurations = { nixosConfigurations = {
"Aristotle" = nixpkgs.lib.nixosSystem { "Aristotle" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
@ -211,7 +194,7 @@
### Darwin ### Darwin
darwinConfigurations = { darwinConfigurations = {
"Plato" = nix-darwin.lib.darwinSystem { "Plato" = inputs.nix-darwin.lib.darwinSystem {
system = "x86_64-darwin"; system = "x86_64-darwin";
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [