Add mobile support (PinePhone Pro)
This commit is contained in:
parent
5c30019fc3
commit
46c858faa0
4 changed files with 90 additions and 4 deletions
26
flake.nix
26
flake.nix
|
|
@ -3,7 +3,10 @@ description = "System conf";
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nur.url = "github:nix-community/NUR";
|
||||
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||
mobile-nixos.url = "github:wentam/mobile-nixos/ppp-pr";
|
||||
mobile-nixos.flake = false;
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager/master";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -66,6 +69,29 @@ outputs = { self,
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
"${username}-mobile" = lib.makeOverridable lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./config
|
||||
|
||||
{ _module.args = moduleArgs;
|
||||
platform = "mobile"; }
|
||||
./platform.nix
|
||||
./hardware-configuration/mobile.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
(import ${mobile-nixos}/lib/configuration.nix { device = "pine64-pinephonepro"; })
|
||||
${mobile-nixos}/examples/phosh/phosh.nix
|
||||
{
|
||||
home-manager.users.${username} = import ./mobile/home-manager.nix;
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.sharedModules = [ ./platform.nix { platform = "mobile"; } ];
|
||||
home-manager.extraSpecialArgs = moduleArgs;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue