From d75b47a6eaab0ca635cb31496586fdead0f53e55 Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Sun, 13 Jun 2021 12:41:13 -0400 Subject: [PATCH] add liza --- flake.nix | 1 + machines/liza/configuration.nix | 29 +++++++++++++++++++ machines/liza/hardware-configuration.nix | 37 ++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 machines/liza/configuration.nix create mode 100644 machines/liza/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 119d0a9..2a95556 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ "nanachi" = mkSystem "x86_64-linux" ./machines/nanachi/configuration.nix; "riko" = mkSystem "x86_64-linux" ./machines/riko/configuration.nix; "neetdev" = mkSystem "x86_64-linux" ./machines/neet.dev/configuration.nix; + "liza" = mkSystem "x86_64-linux" ./machines/liza/configuration.nix; "s0" = mkSystem "aarch64-linux" ./machines/storage/s0/configuration.nix; "n1" = mkSystem "aarch64-linux" ./machines/compute/n1/configuration.nix; }; diff --git a/machines/liza/configuration.nix b/machines/liza/configuration.nix new file mode 100644 index 0000000..7a7953f --- /dev/null +++ b/machines/liza/configuration.nix @@ -0,0 +1,29 @@ +{ config, pkgs, lib, ... }: + +{ + imports =[ + ./hardware-configuration.nix + ../../common/common.nix + ]; + + # fjhduiepwmuenuev2d2i22py6idc5h2k72ylh3fbrrxr7an6dw6ogfid.onion + + nix.flakes.enable = true; + + bios = { + enable = true; + device = "/dev/sda"; + }; + + luks = { + enable = true; + device.path = "/dev/raid0/raid0lv"; + }; + + networking.hostName = "liza"; + + networking.interfaces.enp1s0.useDHCP = true; + + security.acme.acceptTerms = true; + security.acme.email = "zuckerberg@neet.dev"; +} diff --git a/machines/liza/hardware-configuration.nix b/machines/liza/hardware-configuration.nix new file mode 100644 index 0000000..43ab848 --- /dev/null +++ b/machines/liza/hardware-configuration.nix @@ -0,0 +1,37 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "floppy" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ "dm-snapshot" "dm-raid" ]; + boot.kernelModules = [ "dm-raid" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d929b5fc-b9f3-435b-b21f-d3fbbcb1577b"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/d929b5fc-b9f3-435b-b21f-d3fbbcb1577b"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/dd516b94-d090-4991-a476-3a9b6127dd6f"; + fsType = "ext3"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/23294145-e00d-487f-9746-3c2972d8d899"; } + ]; + +} \ No newline at end of file