module: move filesystems into core profile
This commit is contained in:
parent
3b54e3ba95
commit
7bb3fdfef7
6 changed files with 0 additions and 66 deletions
|
@ -57,10 +57,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
filesystems = {
|
||||
enable = true;
|
||||
btrfs.enable = true;
|
||||
};
|
||||
desktop = {
|
||||
gaming.enableAll = true;
|
||||
};
|
||||
|
|
|
@ -46,10 +46,6 @@
|
|||
fprint-sensor.enable = true;
|
||||
};
|
||||
};
|
||||
filesystems = {
|
||||
enable = true;
|
||||
btrfs.enable = true;
|
||||
};
|
||||
desktop = {
|
||||
gaming = {
|
||||
steam.enable = true;
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
# gpu.nvidia = true;
|
||||
form.server = true;
|
||||
};
|
||||
filesystems = {
|
||||
enable = true;
|
||||
btrfs.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
form.portable = true;
|
||||
};
|
||||
services.proxy.enable = false;
|
||||
filesystems = {
|
||||
enable = true;
|
||||
btrfs.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue