mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
switched to disko on moms-laptop
This commit is contained in:
parent
e3e4a05def
commit
8bc2064663
2 changed files with 41 additions and 19 deletions
|
|
@ -6,6 +6,7 @@ inputs: {
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
(import ./printing.nix inputs)
|
(import ./printing.nix inputs)
|
||||||
|
(import ./disko.nix inputs)
|
||||||
];
|
];
|
||||||
localModules = {
|
localModules = {
|
||||||
DM = {
|
DM = {
|
||||||
|
|
@ -31,7 +32,7 @@ inputs: {
|
||||||
];
|
];
|
||||||
services.xserver.videoDrivers = ["intel"];
|
services.xserver.videoDrivers = ["intel"];
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "mom-laptop";
|
hostName = "moms-laptop";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
@ -62,22 +63,4 @@ inputs: {
|
||||||
initrd.availableKernelModules = ["xhci-pci" "ehci-pci" "ahci" "usbhid" "sd_mod" "sr_mod" "rtsx_usb_sdmmc"];
|
initrd.availableKernelModules = ["xhci-pci" "ehci-pci" "ahci" "usbhid" "sd_mod" "sr_mod" "rtsx_usb_sdmmc"];
|
||||||
kernelModules = ["kvm-intel"];
|
kernelModules = ["kvm-intel"];
|
||||||
};
|
};
|
||||||
fileSystems = {
|
|
||||||
"/" = {
|
|
||||||
device = "/dev/disk/by-uuid/518885c4-2d43-46a5-bf17-c734b7b85c2e";
|
|
||||||
fsType = "ext4";
|
|
||||||
label = "nixos";
|
|
||||||
noCheck = false;
|
|
||||||
mountPoint = "/";
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
"/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/5BCE-813C";
|
|
||||||
fsType = "vfat";
|
|
||||||
label = "BOOT";
|
|
||||||
noCheck = false;
|
|
||||||
mountPoint = "/boot";
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
39
systems/moms-laptop/disko.nix
Normal file
39
systems/moms-laptop/disko.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
_: {
|
||||||
|
disko.devices = {
|
||||||
|
disk.sda = {
|
||||||
|
device = "/dev/disk/by-id/ata-WDC_WDS240G2G0A-00JH30_180936803144";
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "table";
|
||||||
|
format = "gpt";
|
||||||
|
partitions = [
|
||||||
|
{
|
||||||
|
type = "partition";
|
||||||
|
name = "ESP";
|
||||||
|
start = "1049KB";
|
||||||
|
end = "525MB";
|
||||||
|
bootable = true;
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "root";
|
||||||
|
type = "partition";
|
||||||
|
start = "525MB";
|
||||||
|
end = "100%";
|
||||||
|
part-type = "primary";
|
||||||
|
bootable = true;
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue