diff --git a/modules/cli.nix b/modules/cli.nix index ee40186..ee5bb1d 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -1,4 +1,10 @@ { config, pkgs, ... }: { - environment.systemPackages = with pkgs; [ htop ripgrep jq silver-searcher ]; + environment.systemPackages = with pkgs; [ + htop + ripgrep + jq + unzip + silver-searcher + ]; } diff --git a/modules/system/xdg.nix b/modules/system/xdg.nix index 7ba65f0..1e13e34 100644 --- a/modules/system/xdg.nix +++ b/modules/system/xdg.nix @@ -1,8 +1,7 @@ # This was cribed from Hlisser's dotfiles see here # https://github.com/hlissner/dotfiles/blob/8fe1fbb6e7fc0d2f95fe75cdb9df7eb0595a0047/modules/xdg.nix -# -{ config, pkgs, ... }: { +{ config, pkgs, ... }: { home-manager.users.james = { home.packages = with pkgs; [ xdg-utils xdg-launch ]; xdg.enable = true; diff --git a/modules/system/zfs.nix b/modules/system/zfs.nix new file mode 100644 index 0000000..3a0aeeb --- /dev/null +++ b/modules/system/zfs.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: { + boot = { + supportedFilesystems = [ "zfs" ]; + zfs = { + forceImportRoot = false; + forceImportAll = false; + }; + # this was required for the initial setup of the zpool. + # see https://nixos.org/nixos/options.html#boot.zfs.forceimportroot + # kernelParams = ["zfs_force=1"]; + }; + + services.zfs = { + autoScrub.enable = true; + # enable default auto-snapshots + autoSnapshot = { + enable = true; + flags = "-k -p --utc"; + }; + }; + +}