feat(nix): upgrade to nix 2.15, fix profile location

This commit is contained in:
winston 2023-05-26 21:58:36 +02:00
parent 131386c1e7
commit 5633380724
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 2 additions and 4 deletions

View file

@ -55,6 +55,7 @@
nixpkgs.overlays = [overlays]; nixpkgs.overlays = [overlays];
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup"; backupFileExtension = "backup";
sharedModules = [ sharedModules = [
./modules ./modules

View file

@ -11,10 +11,6 @@ end
require("fonts").apply(c) require("fonts").apply(c)
require("keys").apply(c) require("keys").apply(c)
-- load terminfo from nix profile
c.set_environment_variables = {
TERMINFO_DIRS = wezterm.home_dir .. "/.nix-profile/share/terminfo",
}
-- window -- window
c.window_decorations = "RESIZE" c.window_decorations = "RESIZE"
c.window_padding = { left = 0, right = 0, top = 0, bottom = 0 } c.window_padding = { left = 0, right = 0, top = 0, bottom = 0 }

View file

@ -2,6 +2,7 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix = { nix = {
gc.automatic = true; gc.automatic = true;
package = pkgs.nixVersions.nix_2_15;
settings = { settings = {
experimental-features = ["nix-command" "flakes" "repl-flake"]; experimental-features = ["nix-command" "flakes" "repl-flake"];
auto-optimise-store = pkgs.stdenv.isLinux; auto-optimise-store = pkgs.stdenv.isLinux;