module: move filesystems into core profile

This commit is contained in:
Infinidoge 2022-04-20 09:30:40 -04:00
parent 3b54e3ba95
commit 7bb3fdfef7
6 changed files with 0 additions and 66 deletions

View file

@ -91,21 +91,6 @@ Currently includes:
- GRUB v2
- systemd-boot
* Filesystems :module:
Sets up a variety of filesystems that may be needed on a computer, as well as any software necessary to manage them.
Currently includes:
- Filesystems
+ btrfs
- btrfs-progs
- btrfs autoscrub service
+ sshfs
+ exfat
+ ntfs
- Software
+ udevil
* Locale :module:
Sets up a variety of locale-related options like font, timezone, language, etc.

View file

@ -1,35 +0,0 @@
{ config, options, lib, pkgs, ... }:
with lib;
with lib.hlissner;
let
cfg = config.modules.filesystems;
opt = options.modules.filesystems;
in
{
options.modules.filesystems = {
enable = mkBoolOpt false;
btrfs = with types; {
enable = mkBoolOpt false;
scrub = mkOpt attrs { };
};
};
config = mkMerge [
(mkIf cfg.enable {
programs.udevil.enable = true;
environment.systemPackages = with pkgs; [
sshfs
exfat # Windows drives
ntfs3g # Windows drives
];
})
(mkIf cfg.btrfs.enable {
environment.systemPackages = with pkgs; [ btrfs-progs ];
services.btrfs.autoScrub = mkAliasDefinitions opt.btrfs.scrub;
})
];
}