dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

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