From db15df879a0bbe12a14aef3f620cdcdd59741358 Mon Sep 17 00:00:00 2001 From: ElXreno Date: Sat, 14 Sep 2024 05:00:19 +0300 Subject: [PATCH] misc: home-mamager: Auto resolve collisions --- profiles/misc.nix | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/profiles/misc.nix b/profiles/misc.nix index 83d7bf2..0777a68 100644 --- a/profiles/misc.nix +++ b/profiles/misc.nix @@ -15,26 +15,29 @@ doc.enable = false; }; - home-manager.users.elxreno = { - systemd.user.startServices = "sd-switch"; - xdg.mimeApps.enable = true; - home = { - inherit (config.system) stateVersion; - sessionPath = [ "${config.users.users.elxreno.home}/bin" ]; - sessionVariables = lib.mkMerge [ - { - EDITOR = "hx"; - _JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd"; - DOTNET_CLI_TELEMETRY_OPTOUT = 1; - } - (lib.mkIf config.deviceSpecific.isLaptop { - NIXPKGS = - "${config.users.users.elxreno.home}/projects/repos/github.com/NixOS/nixpkgs"; - # go brrr - GOROOT = "${pkgs.go}/share/go"; - GOPATH = "${config.users.users.elxreno.home}/.go"; - }) - ]; + home-manager = { + backupFileExtension = ".bak"; + users.elxreno = { + systemd.user.startServices = "sd-switch"; + xdg.mimeApps.enable = true; + home = { + inherit (config.system) stateVersion; + sessionPath = [ "${config.users.users.elxreno.home}/bin" ]; + sessionVariables = lib.mkMerge [ + { + EDITOR = "hx"; + _JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd"; + DOTNET_CLI_TELEMETRY_OPTOUT = 1; + } + (lib.mkIf config.deviceSpecific.isLaptop { + NIXPKGS = + "${config.users.users.elxreno.home}/projects/repos/github.com/NixOS/nixpkgs"; + # go brrr + GOROOT = "${pkgs.go}/share/go"; + GOPATH = "${config.users.users.elxreno.home}/.go"; + }) + ]; + }; }; };