-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.nix
36 lines (33 loc) · 2.39 KB
/
example.nix
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
{ system ? "aarch64-linux"
}:
{ lib
, pkgs
, ... }:
let
ssh_pubkeys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYd45Y/tmUMj1GcC/QGyxlMxA3uQZE8WHu3QclgF/ha2UK1Z70CqSQVBN66S+rvSvAgrJPuEnqOeMIUGssOatSxMZupSOmUi+Wy5mUIE0gcfpZd/OfpsO7tTCCg5WPxatGMrfPGJESiQOnsJCt8Edy24x8hy/yrfARmfqsOS/CsmGagxSovcAfaqiDPiOqFoBS9eY/zJqKC3hr+bi2P8gfN0Nm76MIjOnpamlUCHW4+w30WzJkN8wvOPa1YaEoqLS6Dyvg11nywEcFUhqGI7H4gAkXYaaNU9Z0cbgPMZJf6UgJa0VNpVKTxYkliqoC0xCp4TpUK09hHJvUMrCMBUBD me1@pc1"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnzUrsA7+Fwk+Ap91+WHlUQPfVeOt5CVpE9talGHnN0gEIrBR3jE7IbVnjvMIdTIEupQtBz41JR9eSGFLcZ0mSS7npDaq3poU9rO21uNTZx0AixANyiS34Vzzx0fl2t+sLvsBT0V6M4EjqFeRbeFyYVDl0vjH18sOdUggT/AHW130r8WYVy9XA0jWqUgwe2xKIKcc7gHrG2qLYyPOpuJT3W7kBlOUNruqTOKn2RH3T966d57EAqX0KwRH608Qpv4Lk2QrqsXbnv8jH7mU5wrVrlCPoIDJ4xLPw6sTBuH6U9CFN8T/txwV6M9ECBO96TnCzwWk3s9NJjrIdcOrNvSaP me2@pc1"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCfvRFEMMOZ44QfRdScOE1YfFlOc1XM0Ly2aImmtG6jqBdJWiS13YW/wM3MhcTDbpHQdjGSOaTH95FBMOeOnShzYZ5SioPjA50Ir78ruoDY49L2Gcq+ogEqsjwS+0XY5epC7geBmqcVObnlgyyFbN2+TI8ROI7ifzk43jP4oLpgCZDacJGNE8jLSA6+xbgmPmkz/rd5N+4a2ZkAgYc8of7mIbjvTZb7sFYBisVs0xydXis4KfV7YuwnEVHtNUMdyBxunyprc0zxxBLJ6hDjf0rqO9PRBZj1EnLfD+516MatqvB+ZtAF8/2H29KNdvO0wHjER2BkXNHqi9d0VaCiLn9HCIzh2aL4Vu0GrCec0r2kv90tzn5ijtkxESW8Dla6LIWJOVoZ93kFT/k32EvwfxY6Kf5PckIVzjF4Ed8py76JZe2C+1NrwF1hrft3eWpwJUTnmQ2IHCr4sb05NDxgcNfC3oLEp6dtvQkh8Ji7qJIuryqdOxMyYajjsSWX75oFfOk= me2@pc2"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFCCJTBvufBVLXQz54srjGVOGNj5tvLM+HSq+nYQXQU9p8uNFDJFZTBkW925/T+heFBJKKb7cBl9vcWBuVbvVt4e6OnmI8g6LFz9h3F76l+8Oj/gdgv+RjJ6u/hKctt6Ch27IvAY3GBNkQi8r6Ob5UxL4Av/6QTLLo1eGqUWjep+mOUODKdBgmrZz8s6j8HQ2E4qMedDNU1k0AJ07GDM5onyL7E4SAx9P0oGN9NFY6ZnkwevLc8H/34o8lvRnVrlJK27GkCWn46wcMFsqCb48nGSI93IqxuHh6VxMqTnQbB8tPy2kkOKZWqgURCohwu3GUUcy+A7b/9vZ/j+0dRn+Wo99c42k77b/C9U7E1mdxROxml8hkNfEcT4j2I9tV/LEyWOc4rXBtDI41bveHSbBiMIR4ZNECKqwopNnVTdQFT1+mqFsqyqXPuT6OAI39nSIm/YG3tZZQRBOmWtGHepXfwIrnli8RbLpK4dGD2BzNde+IWaqHt0rBOhTaYNdl3R0= me3@pc1"
];
in
{
imports = [
<mobile-nixos/examples/demo/configuration.nix>
];
nixpkgs.system = system;
mobile.outputs.uefi.fwd22_port = 22222;
environment.systemPackages = with pkgs; [
ncdu
htop
vim
xlibs.xeyes
xfce.xfce4-battery-plugin # Doesn't work as expected
];
users.users.nixos = {
openssh.authorizedKeys.keys = ssh_pubkeys;
};
users.users.root = {
openssh.authorizedKeys.keys = ssh_pubkeys;
};
}