aboutsummaryrefslogtreecommitdiff
path: root/nix-personal/hosts/puppy.nix
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-12-11 19:52:21 +0000
committerAria <me@aria.rip>2023-12-11 19:52:21 +0000
commitc19dc0924481c7edf4938f5aa105f481a787a30e (patch)
treec1dc11ac722136d3a2e929b79fa5461ba603b83f /nix-personal/hosts/puppy.nix
parent688b6527809869465c75d9cb3413d8bcce7aff68 (diff)
refactor(nix-personal): change folder structure
Diffstat (limited to 'nix-personal/hosts/puppy.nix')
-rw-r--r--nix-personal/hosts/puppy.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/nix-personal/hosts/puppy.nix b/nix-personal/hosts/puppy.nix
new file mode 100644
index 0000000..948b243
--- /dev/null
+++ b/nix-personal/hosts/puppy.nix
@@ -0,0 +1,71 @@
+{
+ modulesPath,
+ lib,
+ ...
+}: {
+ imports = [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ (modulesPath + "/profiles/qemu-guest.nix")
+ ../profiles/common.nix
+ ../profiles/landing
+ ];
+
+ disko.devices = {
+ disk.disk1 = {
+ device = lib.mkDefault "/dev/sda";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ boot = {
+ name = "boot";
+ size = "1M";
+ type = "EF02";
+ };
+ esp = {
+ name = "ESP";
+ size = "500M";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ };
+ };
+ swap = {
+ name = "swap";
+ size = "2G";
+ content = {
+ type = "swap";
+ };
+ };
+ root = {
+ name = "root";
+ size = "100%";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ mountOptions = [
+ "defaults"
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+
+ boot.loader.grub = {
+ # no need to set devices, disko will add all devices that have a EF02 partition to the list already
+ # devices = [ ];
+ efiSupport = true;
+ efiInstallAsRemovable = true;
+ };
+
+ networking.hostName = "puppy";
+ deployment = {
+ targetHost = "puppy.girlth.ing";
+ buildOnTarget = true;
+ };
+}