manage .nix-profile symlink

This commit is contained in:
Chris Dombroski 2024-12-24 20:40:52 -05:00
parent 78941ba742
commit 51706913ea
2 changed files with 34 additions and 21 deletions

View file

@ -5,9 +5,10 @@
... ...
}: }:
{ {
home.preferXdgDirectories = true;
xdg.enable = true; xdg.enable = true;
home.sessionVariables = { home = {
preferXdgDirectories = true;
sessionVariables = {
ANDROID_USER_HOME = "${config.xdg.dataHome}/android"; ANDROID_USER_HOME = "${config.xdg.dataHome}/android";
CARGO_HOME = "${config.xdg.dataHome}/cargo"; CARGO_HOME = "${config.xdg.dataHome}/cargo";
DOTNET_CLI_HOME = "${config.xdg.dataHome}/dotnet"; DOTNET_CLI_HOME = "${config.xdg.dataHome}/dotnet";
@ -20,10 +21,18 @@
RUSTUP_HOME = "${config.xdg.dataHome}/rustup"; RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
XCOMPOSE_CACHE = "${config.xdg.cacheHome}/X11/xcompose"; XCOMPOSE_CACHE = "${config.xdg.cacheHome}/X11/xcompose";
}; };
home.shellAliases = { shellAliases = {
adb = ''HOME="${config.xdg.dataHome}/android" adb''; adb = ''HOME="${config.xdg.dataHome}/android" adb'';
mvn = "mvn -gs ${config.xdg.configHome}/maven/settings.xml"; mvn = "mvn -gs ${config.xdg.configHome}/maven/settings.xml";
wget = "wget --hsts-file=${config.xdg.dataHome}/wget-hsts"; wget = "wget --hsts-file=${config.xdg.dataHome}/wget-hsts";
}; };
file = {
".nix-profile" = {
source = config.lib.file.mkOutOfStoreSymlink "./local/state/nix/profile";
};
};
};
gtk.gtk2.configLocation = lib.mkIf osConfig.services.displayManager.enable "${config.xdg.configHome}/gtk-2.0/gtkrc"; gtk.gtk2.configLocation = lib.mkIf osConfig.services.displayManager.enable "${config.xdg.configHome}/gtk-2.0/gtkrc";
} }

View file

@ -25,8 +25,8 @@ in
ezModules.aarch64-emu ezModules.aarch64-emu
ezModules.smartd ezModules.smartd
ezModules.plymouth ezModules.plymouth
# ezModules.cosmic-modules # ezModules.cosmic-modules
# ezModules.cosmic-packages # ezModules.cosmic-packages
]; ];
boot = { boot = {
@ -63,7 +63,11 @@ in
nixpkgs = { nixpkgs = {
config = { config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [ "electron-25.9.0" "dotnet-runtime-6.0.36" "dotnet-sdk-wrapped-6.0.428" "dotnet-sdk-6.0.428"]; permittedInsecurePackages = [
"dotnet-runtime-6.0.36"
"dotnet-sdk-wrapped-6.0.428"
"dotnet-sdk-6.0.428"
];
packageOverrides = pkgs: { packageOverrides = pkgs: {
steam = pkgs.steam.override { extraPkgs = pkgs: [ pkgs.winetricks ]; }; steam = pkgs.steam.override { extraPkgs = pkgs: [ pkgs.winetricks ]; };
}; };