diff --git a/flake.nix b/flake.nix index 66370da..fbeea63 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ in { "reg" = mkSystem "x86_64-linux" ./machines/reg/configuration.nix; + "ray" = mkSystem "x86_64-linux" ./machines/ray/configuration.nix; "mitty" = mkSystem "x86_64-linux" ./machines/mitty/configuration.nix; "nanachi" = mkSystem "x86_64-linux" ./machines/nanachi/configuration.nix; "riko" = mkSystem "x86_64-linux" ./machines/riko/configuration.nix; diff --git a/machines/ray/configuration.nix b/machines/ray/configuration.nix new file mode 100644 index 0000000..523012c --- /dev/null +++ b/machines/ray/configuration.nix @@ -0,0 +1,29 @@ +{ config, pkgs, fetchurl, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ]; + + # 2plyinzleibb3r2jfdrzsfflwxsimdfipw2ynbfuueuvydeigwxu2kid.onion + + boot.kernelPackages = pkgs.linuxPackages_latest; + + nix.flakes.enable = true; + + efi.enable = true; + + luks = { + enable = true; + device = { + path = "/dev/disk/by-uuid/fbe946d3-414f-4c2e-bb24-b845870fde6c"; + allowDiscards = true; + }; + }; + + networking.hostName = "ray"; + + de.enable = true; + de.touchpad.enable = true; +} + diff --git a/machines/ray/hardware-configuration.nix b/machines/ray/hardware-configuration.nix new file mode 100644 index 0000000..e17866c --- /dev/null +++ b/machines/ray/hardware-configuration.nix @@ -0,0 +1,39 @@ +# 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 = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/vg-root"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/home" = + { device = "/dev/mapper/vg-root"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/CD65-4596"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/b5f28078-9dae-42c2-a21e-54b67954cf82"; } + ]; + + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; +} \ No newline at end of file