depoly-host config | update diskio.nox
This commit is contained in:
parent
ca1e9ced84
commit
d5700c543a
2 changed files with 33 additions and 70 deletions
|
|
@ -4,33 +4,7 @@
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
];
|
];
|
||||||
# boot = {
|
disko.devices.disk.main.device = "/dev/nvme0n1";
|
||||||
# kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
# kernelParams = [ "consoleblank=60" ];
|
|
||||||
# loader = {
|
|
||||||
# timeout = 10;
|
|
||||||
# /* systemd-boot = {
|
|
||||||
# enable = true;
|
|
||||||
# }; */
|
|
||||||
# grub = {
|
|
||||||
# device = "nodev";
|
|
||||||
# efiSupport = true;
|
|
||||||
# efiInstallAsRemovable = true;
|
|
||||||
# forceInstall = true;
|
|
||||||
# };
|
|
||||||
# efi = {
|
|
||||||
# #canTouchEfiVariables = true;
|
|
||||||
# efiSysMountPoint = "/boot";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# plymouth = {
|
|
||||||
# enable = true;
|
|
||||||
# theme = "breeze";
|
|
||||||
# };
|
|
||||||
# kernel = {
|
|
||||||
# sysctl = { "vm.swappiness" = 10;};
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
kernelParams = [ "consoleblank=60" ];
|
kernelParams = [ "consoleblank=60" ];
|
||||||
|
|
|
||||||
|
|
@ -1,49 +1,38 @@
|
||||||
# Example to create a bios compatible gpt partition
|
# USAGE in your configuration.nix.
|
||||||
{ lib, ... }: {
|
# Update devices to match your hardware.
|
||||||
|
# {
|
||||||
|
# imports = [ ./disko-config.nix ];
|
||||||
|
# disko.devices.disk.main.device = "/dev/sda";
|
||||||
|
# }
|
||||||
|
{
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.disk1 = {
|
disk = {
|
||||||
device = lib.mkDefault "/dev/sda";
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
boot = {
|
boot = {
|
||||||
name = "boot";
|
size = "1M";
|
||||||
size = "1M";
|
type = "EF02"; # for grub MBR
|
||||||
type = "EF02";
|
|
||||||
};
|
|
||||||
esp = {
|
|
||||||
name = "ESP";
|
|
||||||
size = "500M";
|
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
};
|
||||||
};
|
ESP = {
|
||||||
root = {
|
size = "1G";
|
||||||
name = "root";
|
type = "EF00";
|
||||||
size = "100%";
|
content = {
|
||||||
content = {
|
type = "filesystem";
|
||||||
type = "lvm_pv";
|
format = "vfat";
|
||||||
vg = "pool";
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
root = {
|
||||||
};
|
size = "100%";
|
||||||
};
|
content = {
|
||||||
};
|
type = "filesystem";
|
||||||
lvm_vg = {
|
format = "ext4";
|
||||||
pool = {
|
mountpoint = "/";
|
||||||
type = "lvm_vg";
|
};
|
||||||
lvs = {
|
|
||||||
root = {
|
|
||||||
size = "100%FREE";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/";
|
|
||||||
mountOptions = [ "defaults" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue