summaryrefslogtreecommitdiff
path: root/archetypes/profiles/btrfs/default.nix
blob: 88fad38b6866c26c3f4483c135dff5a0a9647bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, pkgs, ... }: let
	mkBtrfs = lib.mkOverride 820;

	# https://wiki.nixos.org/wiki/Btrfs
	nixosConfig = {
		services.btrfs = {
			autoScrub.enable = mkBtrfs true;
		};

		# Make docker work with btrfs
		virtualisation.docker.storageDriver = mkBtrfs "btrfs";
	};

	homeConfig = {};
in {
	imports = [ (lib._mkProfileArchetype "btrfs" nixosConfig homeConfig) ];
}