From 00ba15ab5190cbecafaf9f000baeef2680c699f3 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sat, 26 Aug 2023 17:29:01 +0200 Subject: [PATCH] direnv --- common.nix | 9 ++++++--- gnome.nix | 2 ++ home.nix | 14 ++++++++++++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/common.nix b/common.nix index 7157843..d5ec072 100644 --- a/common.nix +++ b/common.nix @@ -139,13 +139,16 @@ package = pkgs.gitFull; }; - programs.steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server }; - # List packages installed in system profile. - # environment.systemPackages = []; + environment = { + pathsToLink = ["/share/zsh"]; + + # List packages installed in system profile. + # systemPackages = []; + }; } diff --git a/gnome.nix b/gnome.nix index 8726c2c..8e1a5c3 100644 --- a/gnome.nix +++ b/gnome.nix @@ -16,6 +16,8 @@ }; }; + environment.systemPackages = [pkgs.gnomeExtensions.gsconnect]; + # remove some gnome default apps environment.gnome.excludePackages = with pkgs.gnome; [ cheese # photo booth diff --git a/home.nix b/home.nix index da935a0..5d90f39 100644 --- a/home.nix +++ b/home.nix @@ -73,6 +73,7 @@ powerline powerline-fonts thefuck + direnv ] # development ++ [ @@ -105,20 +106,29 @@ home-manager.enable = true; zsh = { enable = true; + + # syntaxHighlighting.enable = true; + enableAutosuggestions = true; + enableVteIntegration = true; + shellAliases = { my-update = "sudo nixos-rebuild switch"; - my-config = "sudo nano /etc/nixos/configuration.nix"; - my-fmt = "sudo alejandra /etc/nixos/configuration.nix"; + my-fmt = "alejandra ."; }; + history = { size = 10000; path = "${config.xdg.dataHome}/zsh/history"; + expireDuplicatesFirst = true; }; + oh-my-zsh = { enable = true; theme = "agnoster"; plugins = ["git" "sudo" "docker" "systemadmin" "thefuck"]; }; + + initExtra = "eval \"$(direnv hook zsh)\""; }; git = {