summaryrefslogtreecommitdiff
path: root/hosts/carrot/default.nix
blob: 0f477677c1d34a915fc82be2790eb01c5ad5a674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ inputs, lib, pkgs, ... }:

let
  inherit (inputs)
    mobile-nixos nixpkgs;
  pkgsCross = import "${inputs.nixpkgs}" {
    localSystem = "x86_64-linux";
    crossSystem = "aarch64-linux";
    overlays = pkgs.overlays;
  };
in
{
  imports = [
    (import "${mobile-nixos}/lib/configuration.nix" {
      device = "pine64-pinephone";
    })
  ];

  this.locales.default = "us";

  time.timeZone = "America/Chicago";

  this.pc.enable = true;

  this.users.enabled = ["simon"];

  this.sets = {
    cli.tools.full = true;
    de.utils = true;
    media.tools.full = true;
    net.tools.minimal = true;
    script.utils = true;
    sound.tools = true;
    sync.tools = true;
    sys.tools = true;
    www.browser = true;
  };

  mobile.boot.stage-1.kernel.package = lib.mkForce
    (pkgsCross.callPackage "${mobile-nixos}/devices/pine64-pinephone/kernel" { });

  users.users.root.initialPassword = "00000000";

  # Ensures any rndis config from stage-1 is not clobbered by NetworkManager
  networking.networkmanager.unmanaged = [ "rndis0" "usb0" ];

  # Setup USB gadget networking in initrd...
  mobile.boot.stage-1.networking.enable = true;

  nixpkgs.hostPlatform = "aarch64-linux";
  system.stateVersion = "24.11";
}