]> Repositories - machines.git/blob - levanter/configuration.nix
79ff33082f7956a915681aae4577f62fa35a7448
[machines.git] / levanter / configuration.nix
1 { device, hostname, ... }: {
2         imports = [
3                 ./hardware-configuration.nix
4                 ./disko.nix
5                 ./komuhn-website.nix
6         ];
7
8         boot.loader.grub = {
9                 enable = true;
10                 inherit device;
11         };
12
13         networking.hostName = hostname;
14
15         security.pam = {
16                 sshAgentAuth.enable = true;
17                 services."sudo".sshAgentAuth = true;
18         };
19
20         services.openssh.enable = true;
21
22         users = {
23                 mutableUsers = false;
24
25                 users."ayo" = {
26                         isNormalUser = true;
27                         extraGroups = [ "wheel" ];
28
29                         openssh.authorizedKeys.keys = [
30                                 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIeBrQONJC4u4M0/gYhsMMcVxs+mVlk5bmT7vtReEyK7 ayo@monsoon"
31                         ];
32                 };
33         };
34
35         system.stateVersion = "26.05";
36         nix.settings.trusted-users = [ "ayo" ];
37 }