aboutsummaryrefslogtreecommitdiff
path: root/hosts/limbo
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/limbo')
-rw-r--r--hosts/limbo/default.nix33
-rw-r--r--hosts/limbo/disks.nix56
-rw-r--r--hosts/limbo/hardware-configuration.nix28
3 files changed, 117 insertions, 0 deletions
diff --git a/hosts/limbo/default.nix b/hosts/limbo/default.nix
new file mode 100644
index 0000000..6312fb9
--- /dev/null
+++ b/hosts/limbo/default.nix
@@ -0,0 +1,33 @@
+{ config, ... }:
+{
+ imports = [
+ ../../common/core.nix
+ ../../common/greetd.nix
+ ../../common/niri.nix
+ ../../common/pipewire.nix
+ ../../common/region/na-east.nix
+ ./disks.nix
+ ];
+
+ home-manager = {
+ useGlobalPkgs = true;
+ users.rosa = {
+ imports = [
+ ../../user/wm
+ ];
+
+ home = {
+ homeDirectory = "/home/rosa";
+ stateVersion = "26.05";
+ username = "rosa";
+ };
+ };
+ };
+
+ networking = {
+ hostName = "limbo";
+ networkmanager.enable = true;
+ };
+
+ system.stateVersion = "26.05";
+}
diff --git a/hosts/limbo/disks.nix b/hosts/limbo/disks.nix
new file mode 100644
index 0000000..50fb894
--- /dev/null
+++ b/hosts/limbo/disks.nix
@@ -0,0 +1,56 @@
+{ config, ... }:
+{
+ disko.devices.disk.main = {
+ content = {
+ partitions = {
+ ESP = {
+ content = {
+ format = "vfat";
+ mountOptions = [ "umask=0077" ];
+ mountpoint = "/boot";
+ type = "filesystem";
+ };
+
+ size = "512M";
+ type = "EF00";
+ };
+
+ luks = {
+ content = {
+ content = {
+ extraArgs = [ "-f" ];
+ subvolumes = {
+ "/home" = {
+ mountOptions = [ "noatime" ];
+ mountpoint = "/home";
+ };
+
+ "/nix" = {
+ mountOptions = [ "noatime" ];
+ mountpoint = "/nix";
+ };
+
+ "/root" = {
+ mountOptions = [ "noatime" ];
+ mountpoint = "/";
+ };
+ };
+
+ type = "btrfs";
+ };
+
+ name = "root";
+ type = "luks";
+ };
+
+ size = "100%";
+ };
+ };
+
+ type = "gpt";
+ };
+
+ device = "/dev/nvme0n1";
+ type = "disk";
+ };
+}
diff --git a/hosts/limbo/hardware-configuration.nix b/hosts/limbo/hardware-configuration.nix
new file mode 100644
index 0000000..46beb7f
--- /dev/null
+++ b/hosts/limbo/hardware-configuration.nix
@@ -0,0 +1,28 @@
+# 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 + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [
+ "xhci_pci"
+ "thunderbolt"
+ "nvme"
+ ];
+ 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;
+}