aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-12 12:46:02 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-12 12:46:02 -0800
commit1f53bf0a51605f58b9c8c459b2e723606e6da96b (patch)
treedd3f34d6ce49ddd0b4f0118943af58f6cf91a7eb
parent8d4fc67e4cdf158b29b19d03781aff420b313157 (diff)
downloadnix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.tar
nix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.tar.gz
nix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.tar.bz2
nix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.tar.lz
nix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.tar.xz
nix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.tar.zst
nix-1f53bf0a51605f58b9c8c459b2e723606e6da96b.zip
Add disko @richese
-rw-r--r--flake.nix2
-rw-r--r--hosts/richese/default.nix1
-rw-r--r--hosts/richese/disks.nix2
-rw-r--r--hosts/richese/hardware-configuration.nix29
4 files changed, 3 insertions, 31 deletions
diff --git a/flake.nix b/flake.nix
index df50eea..f87cd07 100644
--- a/flake.nix
+++ b/flake.nix
@@ -168,7 +168,7 @@
richese = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
- #disko.nixosModules.disko
+ disko.nixosModules.disko
./hosts/richese
home-manager.nixosModules.home-manager {
home-manager.users.root = import ./home/root/richese.nix;
diff --git a/hosts/richese/default.nix b/hosts/richese/default.nix
index 5cf92c2..a57e142 100644
--- a/hosts/richese/default.nix
+++ b/hosts/richese/default.nix
@@ -13,6 +13,7 @@
];
imports = [
+ ./disks.nix
./hardware-configuration.nix
../common/core
#../common/optional/db.nix
diff --git a/hosts/richese/disks.nix b/hosts/richese/disks.nix
index 612c215..02c6ffe 100644
--- a/hosts/richese/disks.nix
+++ b/hosts/richese/disks.nix
@@ -7,7 +7,7 @@
content = {
type = "gpt";
partitions = {
- bios = {
+ MBR = {
size = "4M";
type = "EF02";
};
diff --git a/hosts/richese/hardware-configuration.nix b/hosts/richese/hardware-configuration.nix
index e4e04cf..d1c33b7 100644
--- a/hosts/richese/hardware-configuration.nix
+++ b/hosts/richese/hardware-configuration.nix
@@ -12,33 +12,4 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
-
- fileSystems."/" =
- { device = "rpool/local/root";
- fsType = "zfs";
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-label/boot";
- fsType = "vfat";
- };
-
- fileSystems."/nix" =
- { device = "rpool/local/nix";
- fsType = "zfs";
- };
-
- fileSystems."/root" =
- { device = "rpool/user/home/root";
- fsType = "zfs";
- };
-
- fileSystems."/home/nipsy" =
- { device = "rpool/user/home/nipsy";
- fsType = "zfs";
- };
-
- swapDevices =
- [ { device = "/dev/disk/by-label/swap"; }
- ];
}