Skip to content

Commit

Permalink
flake: remove extra let-in for phoneModules
Browse files Browse the repository at this point in the history
Should make this part easier to read.
  • Loading branch information
donovanglover committed Oct 10, 2024
1 parent 30a1993 commit 2bd906c
Showing 1 changed file with 43 additions and 44 deletions.
87 changes: 43 additions & 44 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,58 +88,57 @@
}) (listFilesRecursive ./tests)
);

nixosConfigurations =
let
phoneModules = [
./hosts/phone/configuration.nix
./hosts/phone/hardware-configuration.nix
];
in
{
nixos = nixosSystem {
system = "x86_64-linux";

specialArgs = attrs // {
nix-config = self;
};

modules = [
./hosts/laptop/configuration.nix
./hosts/laptop/hardware-configuration.nix
];
nixosConfigurations = {
nixos = nixosSystem {
system = "x86_64-linux";

specialArgs = attrs // {
nix-config = self;
};

mobile-nixos = nixosSystem {
system = "aarch64-linux";

specialArgs = attrs // {
nix-config = self;
};

modules = phoneModules ++ [
(import "${mobile-nixos}/lib/configuration.nix" {
device = "pine64-pinephone";
})

{
mobile.beautification = {
silentBoot = true;
splash = true;
};
}
];
modules = [
./hosts/laptop/configuration.nix
./hosts/laptop/hardware-configuration.nix
];
};

mobile-nixos = nixosSystem {
system = "aarch64-linux";

specialArgs = attrs // {
nix-config = self;
};

mobile-nixos-vm = nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/phone/configuration.nix
./hosts/phone/hardware-configuration.nix

specialArgs = attrs // {
nix-config = self;
};
(import "${mobile-nixos}/lib/configuration.nix" {
device = "pine64-pinephone";
})

modules = phoneModules;
{
mobile.beautification = {
silentBoot = true;
splash = true;
};
}
];
};

mobile-nixos-vm = nixosSystem {
system = "x86_64-linux";

specialArgs = attrs // {
nix-config = self;
};

modules = [
./hosts/phone/configuration.nix
./hosts/phone/hardware-configuration.nix
];
};
};

formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
Expand Down

0 comments on commit 2bd906c

Please sign in to comment.