diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-17 16:21:33 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-17 16:21:33 -0400 |
| commit | ce19b701046c064a1eb39098d8537b2c4964a86e (patch) | |
| tree | 8c42a1392d36132803a2ee4ecb4d2c9150f72296 /hosts/meowbook | |
| parent | 8848e53815fe12ffa3998c0a4bbcf2178d6b00e8 (diff) | |
start rewrite
Diffstat (limited to 'hosts/meowbook')
| -rw-r--r-- | hosts/meowbook/default.nix | 20 | ||||
| -rw-r--r-- | hosts/meowbook/disks.nix | 56 | ||||
| -rw-r--r-- | hosts/meowbook/hardware-configuration.nix | 28 |
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; +} |
