mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-04 08:56:01 +02:00
flake: remove extra let-in for phoneModules
Should make this part easier to read.
This commit is contained in:
parent
30a1993130
commit
2bd906c67b
95
flake.nix
95
flake.nix
@ -88,58 +88,57 @@
|
|||||||
}) (listFilesRecursive ./tests)
|
}) (listFilesRecursive ./tests)
|
||||||
);
|
);
|
||||||
|
|
||||||
nixosConfigurations =
|
nixosConfigurations = {
|
||||||
let
|
nixos = nixosSystem {
|
||||||
phoneModules = [
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
specialArgs = attrs // {
|
||||||
|
nix-config = self;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./hosts/laptop/configuration.nix
|
||||||
|
./hosts/laptop/hardware-configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
mobile-nixos = nixosSystem {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
|
||||||
|
specialArgs = attrs // {
|
||||||
|
nix-config = self;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./hosts/phone/configuration.nix
|
||||||
|
./hosts/phone/hardware-configuration.nix
|
||||||
|
|
||||||
|
(import "${mobile-nixos}/lib/configuration.nix" {
|
||||||
|
device = "pine64-pinephone";
|
||||||
|
})
|
||||||
|
|
||||||
|
{
|
||||||
|
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/configuration.nix
|
||||||
./hosts/phone/hardware-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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
mobile-nixos-vm = nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
|
|
||||||
specialArgs = attrs // {
|
|
||||||
nix-config = self;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = phoneModules;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user