mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
disk settings
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.disks-sys-singledisk-deck = { inputs, ... }: {
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
|
||||
disko.enableConfig = false;
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/root";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/boot";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16 * 1024;
|
||||
}];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.disks-sys-singledisk = { inputs, lib, ... }: {
|
||||
flake.nixosModules.disks-sys-singledisk-encrypted = { inputs, lib, ... }: {
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
|
||||
disko.devices = {
|
||||
@@ -11,7 +11,7 @@
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "512M";
|
||||
size = "1024M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
42
modules/disks/sys/singledisk-unencrypted.nix
Normal file
42
modules/disks/sys/singledisk-unencrypted.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.disks-sys-singledisk-unencrypted = { inputs, ... }: {
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/nvme0n1";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "1024M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "fmask=0077" "dmask=0077" ];
|
||||
extraArgs = [ "-n" "boot" ];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "xfs";
|
||||
mountpoint = "/";
|
||||
extraArgs = [ "-L" "root" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
swapDevices = [{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16 * 1024;
|
||||
}];
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
apps-sys-vesktop
|
||||
base-sys-group
|
||||
desktop-sys-group
|
||||
disks-sys-singledisk
|
||||
disks-sys-singledisk-encrypted
|
||||
gaming-sys-controller
|
||||
gaming-sys-lact
|
||||
gaming-sys-nexusmods
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
apps-sys-vesktop
|
||||
base-sys-group
|
||||
desktop-sys-group
|
||||
disks-sys-singledisk
|
||||
disks-sys-singledisk-encrypted
|
||||
gaming-sys-controller
|
||||
gaming-sys-lact
|
||||
gaming-sys-steam
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
apps-sys-vesktop
|
||||
base-sys-group
|
||||
desktop-sys-group
|
||||
disks-sys-singledisk-deck
|
||||
disks-sys-singledisk-unencrypted
|
||||
gaming-sys-controller
|
||||
gaming-sys-jovian
|
||||
kde-sys-plasma
|
||||
|
||||
Reference in New Issue
Block a user