Get the large disk formatted and mounted on nocix-amd-legacy-quadcore
This commit is contained in:
parent
31335d19f7
commit
4f47636d0e
2 changed files with 47 additions and 26 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
root = {
|
root = {
|
||||||
device = "/dev/sda";
|
device = "/dev/sdb";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
|
|
@ -35,9 +35,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
data = {
|
data = {
|
||||||
device = "/dev/sdb";
|
device = "/dev/sda";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
|
|
@ -56,7 +55,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
lvm_vg = {
|
lvm_vg = {
|
||||||
pool = {
|
pool = {
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,62 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "xhci_pci" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "xhci_pci" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
||||||
boot.kernelModules = [ ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
# yeah, when I enabled this everything about the server died.
|
|
||||||
/*
|
/*
|
||||||
|
> sudo lsblk -o NAME,UUID,MOUNTPOINT
|
||||||
|
NAME UUID MOUNTPOINT
|
||||||
|
sda
|
||||||
|
└─sda1 3d53510d-47ec-4b72-81f0-46ca2d7612f2
|
||||||
|
sdb
|
||||||
|
├─sdb1
|
||||||
|
├─sdb2 F635-99FA /boot
|
||||||
|
└─sdb3 Vd4Zk5-lUto-KdM8-RTRw-zNqU-PvpM-Ik8fBB
|
||||||
|
└─pool-root 392ad825-c133-4bf1-97f4-bedc7dffcff4 /
|
||||||
|
zram0 2c42e053-9c56-440d-84e7-e1dcc43ebae7 [SWAP]
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
|
Commented out after getting:
|
||||||
|
error: The option `fileSystems."/".device' has conflicting definition values:
|
||||||
|
- In `/nix/store/gic0d1i76vscycwnmjjfny1g7vq42cl9-source/module.nix': "/dev/pool/root"
|
||||||
|
- In `/nix/store/1vmgswmnkfga5hnjlm5if86nd2j66a9s-source/host/nocix/amd-legacy-quadcore/hardware-configuration.nix': "/dev/disk/by-uuid/392ad825-c133-4bf1-97f4-bedc7dffcff4"
|
||||||
|
Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/sda3";
|
device = "/dev/disk/by-uuid/392ad825-c133-4bf1-97f4-bedc7dffcff4";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/F635-99FA";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
"/mnt/bigdisk" = {
|
"/mnt/bigdisk" = {
|
||||||
device = "762be975-bbf0-4fd6-998f-7eb077b580cb";
|
device = "3d53510d-47ec-4b72-81f0-46ca2d7612f2";
|
||||||
options = [ "users" "nofail" ];
|
fsType = "btrfs";
|
||||||
|
neededForBoot = false;
|
||||||
|
options = [ "noatime" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue