blog: nixos-pinephone: fix syntax highlighting
This commit is contained in:
parent
cc78e0ca09
commit
9fc4f74ca3
|
@ -80,7 +80,7 @@ we'll want to rebuild the image and include a user, desktop environment, and som
|
|||
|
||||
we'll use home-manager to make user setup a bit nicer. add that to `flake.nix`:
|
||||
|
||||
```diff -u a/flake.nix b/flake.nix
|
||||
```diff
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/dfd82985c273aac6eced03625f454b334daae2e8";
|
||||
mobile-nixos = {
|
||||
|
@ -92,7 +92,7 @@ we'll use home-manager to make user setup a bit nicer. add that to `flake.nix`:
|
|||
```
|
||||
|
||||
add a module for this pinephone build:
|
||||
```diff -u a/flake.nix b/flake.nix
|
||||
```diff
|
||||
- outputs = { self, nixpkgs, mobile-nixos }: {
|
||||
+ outputs = { self, nixpkgs, mobile-nixos, home-manager }: {
|
||||
pinephone-img = (pkgs-mobile.lib.nixosSystem {
|
||||
|
@ -182,7 +182,7 @@ and then populate `modules/default.nix`. you could just throw everything in here
|
|||
```
|
||||
|
||||
`modules/phosh.nix`:
|
||||
```
|
||||
```nix
|
||||
{ ... }:
|
||||
{
|
||||
services.xserver.desktopManager.phosh = {
|
||||
|
@ -244,7 +244,7 @@ eject the card and boot the phone, login, and toy around with it. open the displ
|
|||
## Building Generations on the Device
|
||||
we don't want to re-flash the device _every_ time we change something. let's update the flake to allow on-device updates.
|
||||
|
||||
```diff -u a/flake.nix b/flake.nix
|
||||
```diff
|
||||
- outputs = { self, nixpkgs, mobile-nixos, home-manager }: {
|
||||
- pinephone-img = (nixpkgs.lib.nixosSystem {
|
||||
+ outputs = { self, nixpkgs, mobile-nixos, home-manager }: rec {
|
||||
|
|
Loading…
Reference in New Issue