Changes
5 changed files (+192/-2)
-
-
@@ -101,6 +101,26 @@"type": "github" } }, "disko": { "inputs": { "nixpkgs": [ "nixpkgs" ] }, "locked": { "lastModified": 1765326679, "narHash": "sha256-fTLX9kDwLr9Y0rH/nG+h1XG5UU+jBcy0PFYn5eneRX8=", "owner": "nix-community", "repo": "disko", "rev": "d64e5cdca35b5fad7c504f615357a7afe6d9c49e", "type": "github" }, "original": { "owner": "nix-community", "repo": "disko", "type": "github" } }, "flake-compat": { "flake": false, "locked": {
-
@@ -332,6 +352,7 @@"root": { "inputs": { "agenix": "agenix", "disko": "disko", "home-manager": "home-manager_2", "mac-app-util": "mac-app-util", "nix-colorizer": "nix-colorizer",
-
-
-
@@ -29,6 +29,12 @@inputs.nixpkgs.follows = "nixpkgs"; }; # Declarative disk partitioning tool and NixOS module. disko = { url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; }; mac-app-util = { url = "github:hraban/mac-app-util"; inputs.nixpkgs.follows = "nixpkgs";
-
@@ -53,6 +59,7 @@nixpkgs, home-manager, agenix, disko, mac-app-util, nixgl, nix-colorizer,
-
@@ -128,6 +135,7 @@nixpkgs home-manager agenix disko nix-colorizer ; };
-
-
-
@@ -0,0 +1,114 @@# Copyright 2025 Shota FUJI <pockawoooh@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # # SPDX-License-Identifier: 0BSD # # Disk partition configurations for GMKtec EVO-T1, with NVMe 2TB SSD installed. # # To apply partition and format, run "disko" CLI on target machine. # # ```sh # sudo nix --experimental-features "nix-command flakes" \ # run github:nix-community/disko/latest -- \ # --mode destroy,format,mount $PATH_TO_THIS_FILE # ``` # # https://github.com/nix-community/disko/blob/master/docs/quickstart.md { # Pre-installed SSD. disko.devices.disk.main = { type = "disk"; device = "/dev/nvme1n1"; content = { type = "gpt"; # ESP ... EFI system partition # https://wiki.archlinux.org/title/EFI_system_partition partitions.ESP = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0777" ]; }; }; partitions.root = { size = "100%"; content = { type = "btrfs"; # Override existing partition. extraArgs = [ "-f" ]; subvolumes = { "/root" = { mountpoint = "/"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/incus" = { mountpoint = "/var/lib/incus"; mountOptions = [ "compress=zstd" ]; }; "/nix" = { mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/swap" = { mountpoint = "/swap/swapfile"; swap.swapfile.size = "64G"; }; }; }; }; }; }; # Additional SSD installed by me. disko.devices.disk.data = { type = "disk"; device = "/dev/nvme0n1"; content = { type = "gpt"; partitions.root = { size = "100%"; content = { type = "btrfs"; # Override existing partition. extraArgs = [ "-f" ]; subvolumes = { "/home" = { mountpoint = "/home"; mountOptions = [ "compress=zstd" ]; }; }; }; }; }; }; }
-
-
-
@@ -0,0 +1,44 @@# Copyright 2025 Shota FUJI <pockawoooh@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # # SPDX-License-Identifier: 0BSD # # Generated by `sudo nixos-generate-config --no-filesystems --root /mnt` on # live USB. { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }
-
-
-
@@ -13,8 +13,7 @@# # SPDX-License-Identifier: 0BSD # # NixOS module for workerbee, container guest for development works. # This module is used as Incus system container. # NixOS module for queenbee, desktop machine (GMKtec EVO-T1) { config,
-
@@ -22,11 +21,15 @@nixpkgs, home-manager, agenix, disko, ... }: { imports = [ agenix.nixosModules.default disko.nixosModules.default ../../../hardwares/gmktec-evo-t1/disko.nix ../../../hardwares/gmktec-evo-t1/hardware-configuration.nix ../nixos/state-version.nix ../home-manager ../essentials
-