Added vps config, rearranged current one

This commit is contained in:
Lgmrszd 2024-01-12 23:09:13 +03:00
parent 8da5147ff4
commit 8b5554e732
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
8 changed files with 133 additions and 26 deletions

View file

@ -5,7 +5,9 @@
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, secrets, ... }:
let
root = "/dev/vgmain/nixos";
in
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
@ -17,25 +19,25 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = secrets.drive-ids.volumes.root;
{ device = root;
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/nix" =
{ device = secrets.drive-ids.volumes.root;
{ device = root;
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/home" =
{ device = secrets.drive-ids.volumes.root;
{ device = root;
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/boot" =
{ device = secrets.drive-ids.volumes.boot;
{ device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = [
"noauto"
@ -47,7 +49,7 @@
};
swapDevices =
[ { device = secrets.drive-ids.volumes.swap; }
[ { device = "/dev/vgmain/swap"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking