Commit dc69f5e
Changed files (3)
hosts
chaser-pardofelis
modules
hosts
chaser-pardofelis
hosts/chaser-pardofelis/default.nix
@@ -13,11 +13,7 @@
let
hostName = "pardofelis";
in {
- imports =
- (mylib.scanModules ./.)
- ++ [
- disko.nixosModules.default
- ];
+ imports = mylib.scanModules ./.;
modules.currentHost = hostName;
}
hosts/chaser-pardofelis/disko-fs.nix
@@ -1,41 +0,0 @@
-{
- disko.devices = {
- disk = {
- main = {
- device = "/dev/vda";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- boot = {
- size = "1M";
- type = "EF02"; # for grub MBR
- };
- root = {
- size = "100%";
- content = {
- type = "btrfs";
- # Btrfs subvolumes for better organization and snapshotting
- subvolumes = {
- "/@" = {
- mountpoint = "/";
- };
- "/@home" = {
- mountpoint = "/home";
- };
- "/@nix" = {
- mountpoint = "/nix";
- mountOptions = ["compress=zstd" "noatime"];
- };
- "/@log" = {
- mountpoint = "/var/log";
- };
- };
- };
- };
- };
- };
- };
- };
- };
-}
modules/hosts/chaser-pardofelis/filesystem.nix
@@ -0,0 +1,45 @@
+{inputs, ...}: {
+ flake.modules.nixos."hosts/pardofelis" = {
+ imports = [inputs.disko.nixosModules.default];
+
+ disko.devices = {
+ disk = {
+ main = {
+ device = "/dev/vda";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ boot = {
+ size = "1M";
+ type = "EF02"; # for grub MBR
+ };
+ root = {
+ size = "100%";
+ content = {
+ type = "btrfs";
+ # Btrfs subvolumes for better organization and snapshotting
+ subvolumes = {
+ "/@" = {
+ mountpoint = "/";
+ };
+ "/@home" = {
+ mountpoint = "/home";
+ };
+ "/@nix" = {
+ mountpoint = "/nix";
+ mountOptions = ["compress=zstd" "noatime"];
+ };
+ "/@log" = {
+ mountpoint = "/var/log";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}