aboutsummaryrefslogtreecommitdiff
path: root/hosts/meowbook
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/meowbook')
-rw-r--r--hosts/meowbook/default.nix20
-rw-r--r--hosts/meowbook/disks.nix56
-rw-r--r--hosts/meowbook/hardware-configuration.nix28
3 files changed, 104 insertions, 0 deletions
diff --git a/hosts/meowbook/default.nix b/hosts/meowbook/default.nix
new file mode 100644
index 0000000..084074e
--- /dev/null
+++ b/hosts/meowbook/default.nix
@@ -0,0 +1,20 @@
+{ config, ... }:
+{
+ imports = [
+ ../../common/region/na-east.nix
+ ./disks.nix
+ ];
+
+ networking.networkmanager = {
+ enable = true;
+ wifi.macAddress = "random";
+ };
+
+ programs.sway.enable = true;
+ security.doas.enable = true;
+ services.automatic-timezoned.enable = true;
+ system = {
+ enableDesktopDefaults = true;
+ stateVersion = "26.05";
+ };
+}
diff --git a/hosts/meowbook/disks.nix b/hosts/meowbook/disks.nix
new file mode 100644
index 0000000..50fb894
--- /dev/null
+++ b/hosts/meowbook/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/meowbook/hardware-configuration.nix b/hosts/meowbook/hardware-configuration.nix
new file mode 100644
index 0000000..46beb7f
--- /dev/null
+++ b/hosts/meowbook/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;
+}