Put boot partition on RAID1 device
Create users with empty password on gamepc
This commit is contained in:
parent
3e3f589e4f
commit
87153f15be
2 changed files with 22 additions and 38 deletions
|
@ -5,30 +5,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
facter.reportPath = ./facter.json;
|
facter.reportPath = ./facter.json;
|
||||||
|
|
||||||
networking.hostName = "gamepc";
|
networking.hostName = "gamepc";
|
||||||
|
users.users.pim.password = "";
|
||||||
# boot = {
|
users.users.root.password = "";
|
||||||
# loader = {
|
|
||||||
# systemd-boot.enable = true;
|
|
||||||
# efi.canTouchEfiVariables = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
efiInstallAsRemovable = true;
|
efiInstallAsRemovable = true;
|
||||||
mirroredBoots = [
|
|
||||||
{
|
|
||||||
path = "/boot0";
|
|
||||||
devices = ["nodev"];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
path = "/boot1";
|
|
||||||
devices = ["nodev"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
disko.devices.disk = lib.genAttrs ["0" "1"] (name: {
|
disko.devices.disk = lib.genAttrs ["0" "1"] (name: {
|
||||||
|
@ -37,14 +21,16 @@
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
boot = {
|
||||||
|
size = "1M";
|
||||||
|
type = "EF02"; # for grub MBR
|
||||||
|
};
|
||||||
ESP = {
|
ESP = {
|
||||||
type = "EF00";
|
|
||||||
size = "500M";
|
size = "500M";
|
||||||
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "mdraid";
|
||||||
format = "vfat";
|
name = "boot";
|
||||||
mountpoint = "/boot${name}";
|
|
||||||
mountOptions = ["umask=0077"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mdadm = {
|
mdadm = {
|
||||||
|
@ -59,16 +45,16 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
disko.devices.mdadm = {
|
disko.devices.mdadm = {
|
||||||
# boot = {
|
boot = {
|
||||||
# type = "mdadm";
|
type = "mdadm";
|
||||||
# level = 1;
|
level = 1;
|
||||||
# metadata = "1.0";
|
metadata = "1.0";
|
||||||
# content = {
|
content = {
|
||||||
# type = "filesystem";
|
type = "filesystem";
|
||||||
# format = "vfat";
|
format = "vfat";
|
||||||
# mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
raid0 = {
|
raid0 = {
|
||||||
type = "mdadm";
|
type = "mdadm";
|
||||||
level = 0;
|
level = 0;
|
||||||
|
|
|
@ -43,12 +43,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users = {
|
users.users.pim = {
|
||||||
users.pim = {
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["wheel" "docker" "input" "wireshark" "dialout"];
|
extraGroups = ["wheel" "docker" "input" "wireshark" "dialout"];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue