Upgraded snowfall lib
This commit is contained in:
parent
7e87dbc55b
commit
a1709f033f
58 changed files with 22 additions and 19 deletions
23
modules/nixos/system/fonts/default.nix
Normal file
23
modules/nixos/system/fonts/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.system.fonts;
|
||||
in {
|
||||
options.aa.system.fonts = with types; {
|
||||
enable = mkEnableOption "manage fonts";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
(nerdfonts.override {fonts = ["Hack"];})
|
||||
];
|
||||
};
|
||||
}
|
27
modules/nixos/system/monitoring/default.nix
Normal file
27
modules/nixos/system/monitoring/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.system.monitoring;
|
||||
in {
|
||||
options.aa.system.monitoring = with types; {
|
||||
enable = mkEnableOption "monitoring";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
htop
|
||||
lm_sensors
|
||||
powertop
|
||||
zenith
|
||||
];
|
||||
|
||||
powerManagement.powertop.enable = true;
|
||||
|
||||
aa.apps.btop.enable = true;
|
||||
};
|
||||
}
|
29
modules/nixos/system/zfs/default.nix
Normal file
29
modules/nixos/system/zfs/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.system.zfs;
|
||||
in {
|
||||
options.aa.system.zfs = with types; {
|
||||
enable = mkEnableOption "zfs";
|
||||
# TODO: Introduce a zfsOnRoot option
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [pkgs.zfs-prune-snapshots];
|
||||
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
# Still need to set `com.sun:auto-snapshot` to `true` on datasets
|
||||
# zfs set com.sun:auto-snapshot=true pool/dataset
|
||||
autoSnapshot = {
|
||||
enable = true;
|
||||
flags = "-k -p --utc";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue