summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-18 15:25:35 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-18 15:25:35 +0100
commit011e64f047d1cf0108779f3a1516e00478056276 (patch)
tree1c72580f1955f284afb590ac35cd85b464f8131c
parent5a3b6d80405c3319089104a6b3120094ce6e25ba (diff)
downloaduser-config-011e64f047d1cf0108779f3a1516e00478056276.tar.gz
user-config-011e64f047d1cf0108779f3a1516e00478056276.zip
Enable direnv and nix deuxfleurs cache
-rw-r--r--nixos/common.nix2
-rw-r--r--nixpkgs/common.nix5
2 files changed, 7 insertions, 0 deletions
diff --git a/nixos/common.nix b/nixos/common.nix
index 798fbc0..a967e7d 100644
--- a/nixos/common.nix
+++ b/nixos/common.nix
@@ -62,6 +62,8 @@
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 30d";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nix.settings.substituters = [ "https://nix.web.deuxfleurs.fr" ];
+ nix.settings.trusted-public-keys = [ "nix.web.deuxfleurs.fr:eTGL6kvaQn6cDR/F9lDYUIP9nCVR/kkshYfLDJf1yKs=" ];
environment.systemPackages = with pkgs; [
home-manager
diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix
index 7ecdb89..75d2ce5 100644
--- a/nixpkgs/common.nix
+++ b/nixpkgs/common.nix
@@ -1,6 +1,11 @@
{ pkgs, ... }: {
home.username = "lx";
+ programs.direnv = {
+ enable = true;
+ enableBashIntegration = true;
+ };
+
programs.bash = {
enable = true;
shellAliases = {