summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--installer.nix18
m---------nixpkgs0
-rw-r--r--odin.nix1
-rw-r--r--odin/hw.nix3
-rw-r--r--users/gkleen.nix1
-rw-r--r--users/keys/gkleen-sif.pub1
6 files changed, 20 insertions, 4 deletions
diff --git a/installer.nix b/installer.nix
index 3bdca7ab..9276907f 100644
--- a/installer.nix
+++ b/installer.nix
@@ -8,13 +8,11 @@
8 8
9 boot.kernelPackages = pkgs.linuxPackages_latest; 9 boot.kernelPackages = pkgs.linuxPackages_latest;
10 10
11 systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
12
13 environment.systemPackages = with pkgs; [ 11 environment.systemPackages = with pkgs; [
14 mosh 12 mosh
15 tmux 13 tmux
16 zsh 14 zsh
17 pythonPackages.magic-wormhole 15 python3Packages.magic-wormhole
18 ]; 16 ];
19 17
20 networking = { 18 networking = {
@@ -30,5 +28,17 @@
30 }; 28 };
31 }; 29 };
32 30
33 i18n.consoleKeyMap = "dvp"; 31 users.users.root =
32 let template = import ./users/gkleen.nix;
33 in {
34 inherit (template) shell;
35 openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles;
36 };
37
38 services.openssh = {
39 enable = true;
40 passwordAuthentication = false;
41 };
42
43 console.keyMap = "dvp";
34} 44}
diff --git a/nixpkgs b/nixpkgs
Subproject a59f1fa76fd6de48ac39e0289a59e7e2fcfb0e4 Subproject 28cb581e131f67fb7862e47653e9b74c0e67987
diff --git a/odin.nix b/odin.nix
index 1ae5d26c..56fca270 100644
--- a/odin.nix
+++ b/odin.nix
@@ -29,6 +29,7 @@
29 boot.loader.grub.extraConfig = "serial; terminal_output.serial"; 29 boot.loader.grub.extraConfig = "serial; terminal_output.serial";
30 boot.kernelParams = [ "console=ttyS0,115200" 30 boot.kernelParams = [ "console=ttyS0,115200"
31 ]; 31 ];
32 boot.kernelPackages = pkgs.linuxPackages_latest;
32 33
33 boot.extraTTYs = [ "tty7" ]; 34 boot.extraTTYs = [ "tty7" ];
34 35
diff --git a/odin/hw.nix b/odin/hw.nix
index e3c711fc..c7ff5968 100644
--- a/odin/hw.nix
+++ b/odin/hw.nix
@@ -13,7 +13,10 @@
13 "uhci_hcd" "ehci_pci" "ata_piix" "xhci_pci" "ahci" 13 "uhci_hcd" "ehci_pci" "ata_piix" "xhci_pci" "ahci"
14 "pata_marvell" "nvme" "firewire_ohci" "usb_storage" "usbhid" 14 "pata_marvell" "nvme" "firewire_ohci" "usb_storage" "usbhid"
15 "sd_mod" "r8169" "mpt3sas" 15 "sd_mod" "r8169" "mpt3sas"
16 "dm-snapshot" "dm-integrity" "dm-raid" "drbg" "authenc"
17 "fbcon" "rtsx_pci_sdmmc"
16 ]; 18 ];
19 kernelModules = [ "dm-raid" ];
17 luks.devices = { 20 luks.devices = {
18 raid6 = { 21 raid6 = {
19 device = "/dev/disk/by-uuid/1a552384-4f74-40bf-a5cf-961ea24c339e"; 22 device = "/dev/disk/by-uuid/1a552384-4f74-40bf-a5cf-961ea24c339e";
diff --git a/users/gkleen.nix b/users/gkleen.nix
index c799070d..b1497470 100644
--- a/users/gkleen.nix
+++ b/users/gkleen.nix
@@ -10,6 +10,7 @@
10 isNormalUser = true; 10 isNormalUser = true;
11 openssh.authorizedKeys.keyFiles = [ 11 openssh.authorizedKeys.keyFiles = [
12 keys/gkleen-hel.pub 12 keys/gkleen-hel.pub
13 keys/gkleen-sif.pub
13 ]; 14 ];
14 hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/"; 15 hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/";
15 16
diff --git a/users/keys/gkleen-sif.pub b/users/keys/gkleen-sif.pub
new file mode 100644
index 00000000..e9aaf215
--- /dev/null
+++ b/users/keys/gkleen-sif.pub
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrHPERae+OUTNOzNf9d2767ljFCm5hgmQw48Dj4RrlU gkleen@sif.midgard.yggdrasil