commit 17a054328149616624d93d19840374a4a28ed73d
parent 7fc75a06dabf2f2601573288345677b264364d6e
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 9 Aug 2023 12:17:34 +0200
fix usage of old options and reformat
Diffstat:
2 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix
@@ -177,10 +177,12 @@
# Feel free to remove if you don't need it.
services.openssh = {
enable = true;
- # Forbid root login through SSH.
- permitRootLogin = "no";
- # Use keys only. Remove if you want to SSH using password (not recommended)
- passwordAuthentication = false;
+ settings = {
+ # Forbid root login through SSH.
+ PermitRootLogin = "no";
+ # Use keys only. Remove if you want to SSH using password (not recommended)
+ PasswordAuthentication = false;
+ };
};
# # Darling Erasure
diff --git a/nixos/worker-1/hardware-configuration.nix b/nixos/worker-1/hardware-configuration.nix
@@ -5,7 +5,8 @@
{
imports =
- [ (modulesPath + "/profiles/qemu-guest.nix")
+ [
+ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sr_mod" ];
@@ -14,7 +15,8 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
- { device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
+ {
+ device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "noatime" ];
};
@@ -22,32 +24,37 @@
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/7116e0c2-b7f5-4960-a283-b4a958213bcd";
fileSystems."/home" =
- { device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
+ {
+ device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
fsType = "btrfs";
options = [ "subvol=home" "compress=zstd" "noatime" ];
};
fileSystems."/nix" =
- { device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
+ {
+ device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ];
};
fileSystems."/persist" =
- { device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
+ {
+ device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" "noatime" ];
};
fileSystems."/var/log" =
- { device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
+ {
+ device = "/dev/disk/by-uuid/0bfb59e2-0156-4845-8887-043976a17dca";
fsType = "btrfs";
options = [ "subvol=log" "compress=zstd" "noatime" ];
neededForBoot = true;
};
fileSystems."/boot" =
- { device = "/dev/sda1";
+ {
+ device = "/dev/disk/by-uuid/89922472-7774-704b-b38e-8bed3861df52";
fsType = "vfat";
};
@@ -62,4 +69,4 @@
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
-}
-\ No newline at end of file
+}