manage .nix-profile symlink
This commit is contained in:
parent
78941ba742
commit
51706913ea
2 changed files with 34 additions and 21 deletions
|
@ -5,25 +5,34 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
home.preferXdgDirectories = true;
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
home.sessionVariables = {
|
home = {
|
||||||
ANDROID_USER_HOME = "${config.xdg.dataHome}/android";
|
preferXdgDirectories = true;
|
||||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
sessionVariables = {
|
||||||
DOTNET_CLI_HOME = "${config.xdg.dataHome}/dotnet";
|
ANDROID_USER_HOME = "${config.xdg.dataHome}/android";
|
||||||
DVDCSS_CACHE = "${config.xdg.dataHome}/dvdcss";
|
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||||
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
|
DOTNET_CLI_HOME = "${config.xdg.dataHome}/dotnet";
|
||||||
JAVA_OPTIONS = "-Djava.util.prefs.userRoot=${config.xdg.configHome}/java";
|
DVDCSS_CACHE = "${config.xdg.dataHome}/dvdcss";
|
||||||
NODE_REPL_HISTORY = "${config.xdg.stateHome}/node_repl_history";
|
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
|
||||||
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
JAVA_OPTIONS = "-Djava.util.prefs.userRoot=${config.xdg.configHome}/java";
|
||||||
PYTHON_HISTORY = "${config.xdg.stateHome}/python_history";
|
NODE_REPL_HISTORY = "${config.xdg.stateHome}/node_repl_history";
|
||||||
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
||||||
XCOMPOSE_CACHE = "${config.xdg.cacheHome}/X11/xcompose";
|
PYTHON_HISTORY = "${config.xdg.stateHome}/python_history";
|
||||||
};
|
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
||||||
home.shellAliases = {
|
XCOMPOSE_CACHE = "${config.xdg.cacheHome}/X11/xcompose";
|
||||||
adb = ''HOME="${config.xdg.dataHome}/android" adb'';
|
};
|
||||||
mvn = "mvn -gs ${config.xdg.configHome}/maven/settings.xml";
|
shellAliases = {
|
||||||
wget = "wget --hsts-file=${config.xdg.dataHome}/wget-hsts";
|
adb = ''HOME="${config.xdg.dataHome}/android" adb'';
|
||||||
|
mvn = "mvn -gs ${config.xdg.configHome}/maven/settings.xml";
|
||||||
|
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";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ]; };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue