summaryrefslogtreecommitdiff
path: root/hosts/carrot/default.nix
blob: 813412f99d267b22ec9a766cdb4e0a1f7e0b0721 (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
{ inputs, lib, pkgs, ... }:

let inherit (inputs) mobile-nixos;
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;
  };

  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";
}