aboutsummaryrefslogtreecommitdiff
path: root/modules/profiles/common/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profiles/common/default.nix')
-rw-r--r--modules/profiles/common/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/profiles/common/default.nix b/modules/profiles/common/default.nix
new file mode 100644
index 0000000..c25fece
--- /dev/null
+++ b/modules/profiles/common/default.nix
@@ -0,0 +1,46 @@
+{ inputs, lib, pkgs, ... }:
+{
+ nix = {
+ settings = {
+ trusted-users = [ "@wheel" "root" ];
+ experimental-features = lib.mkDefault [
+ "nix-command"
+ "flakes"
+ "pipe-operators"
+ ];
+ auto-optimise-store = true;
+ };
+ gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 14d";
+ };
+ };
+
+ nixpkgs = {
+ config = {
+ allowUnfree = true;
+ allowUnfreePredicate = (_: true);
+ };
+ overlays = [
+ (final: prev: {
+ unstable = import inputs.nixpkgs-unstable {
+ system = final.system;
+ config.allowUnfree = true;
+ };
+ })
+ ];
+ };
+
+ programs = {
+ git.enable = true;
+ htop.enable = true;
+ neovim = {
+ enable = true;
+ package = pkgs.unstable.neovim-unwrapped;
+ viAlias = true;
+ vimAlias = true;
+ defaultEditor = true;
+ };
+ };
+}