summaryrefslogtreecommitdiff
path: root/hosts/sweetiepc/configuration.nix
blob: d2bf172665d90456404c5fe8ffe4fbb3fc72486f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ config, lib, pkgs, home-manager, ... }: {
	# Setup bootloader
	boot._loader = {
		enable = true;
		loader = "grub";
	};

	# Enable common options
	_archetypes = {
		profiles = {
			desktop = {
				enable = true;
				home.users.timmy.enable = true;
			};
			zfs.enable = true;
			btrfs.enable = true;
			gnome.enable = true;
		};
		collections = {
			desktop = {
				office.enable = true;
			};
		};
	};

	# Import zfs pools
	boot.zfs.extraPools = [ "geminus" "quattuor" ];

	# Enable user timmy
	_users.timmy = {
		enable = true;
	};

	# Disable suspend
	systemd._suspend.disable = true;

	# Configure home
	home-manager.users.timmy = {
		fonts.fontconfig = {
			subpixelRendering = "rgb";
			hinting = "none";
		};
	};

	# Without this, "ZFS requires networking.hostId to be set" will be raised
	networking.hostId = "fdde503a";

	system.stateVersion = "26.05";
}