dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
| 1 | # The desktop: ASUS TUF B850-PLUS, Ryzen 7 9850X3D, RTX 3080 Ti. |
| 2 | { inputs, ... }: |
| 3 | let |
| 4 | # The MacBook's public SSH key (its ~/.ssh/id_ed25519.pub), see below. |
| 5 | macKeys = [ |
| 6 | "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEn6xiiRol1fdQzd/2GFkkhZVpkqT9/cTCqhfchJJth9" |
| 7 | ]; |
| 8 | in |
| 9 | { |
| 10 | imports = [ |
| 11 | ./hardware-configuration.nix |
| 12 | ./disko.nix |
| 13 | inputs.disko.nixosModules.disko |
| 14 | ../../modules/nixos |
| 15 | inputs.home-manager.nixosModules.home-manager |
| 16 | ]; |
| 17 | |
| 18 | networking.hostName = "desktop"; |
| 19 | |
| 20 | # The MacBook, which installs this machine with nixos-anywhere and can log in |
| 21 | # before the home folder (and its ~/.ssh/authorized_keys) is restored. Root |
| 22 | # too: a fresh install has no passwords, so that is how yours gets set. |
| 23 | users.users.vizie.openssh.authorizedKeys.keys = macKeys; |
| 24 | users.users.root.openssh.authorizedKeys.keys = macKeys; |
| 25 | |
| 26 | home-manager = { |
| 27 | useGlobalPkgs = true; |
| 28 | useUserPackages = true; |
| 29 | extraSpecialArgs = { inherit inputs; }; |
| 30 | # A file already in the way of one Home Manager wants to place is moved |
| 31 | # aside with this suffix rather than overwritten. |
| 32 | backupFileExtension = "pre-nixos"; |
| 33 | users.vizie = import ../../modules/home; |
| 34 | }; |
| 35 | |
| 36 | # Leave this at the release the machine was installed with, even after |
| 37 | # upgrading: it only controls the defaults of stateful things such as |
| 38 | # database formats. It is not the NixOS version you run. |
| 39 | system.stateVersion = "26.05"; |
| 40 | } |