mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
Added vps config, rearranged current one
This commit is contained in:
parent
8da5147ff4
commit
8b5554e732
8 changed files with 133 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue