mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 12:40:42 +00:00
Run alejandra
This commit is contained in:
parent
286920def4
commit
c00134da1c
152 changed files with 827 additions and 721 deletions
|
@ -1,5 +1,5 @@
|
|||
# Attribute set of files to link into the user's XDG directories
|
||||
{ config, ... }: let
|
||||
{config, ...}: let
|
||||
XDG_CACHE_HOME = config.xdg.cacheHome;
|
||||
XDG_CONFIG_HOME = config.xdg.configHome;
|
||||
XDG_DATA_HOME = config.xdg.dataHome;
|
||||
|
@ -7,7 +7,6 @@
|
|||
XDG_RUNTIME_DIR = config.home.sessionVariables.XDG_RUNTIME_DIR;
|
||||
XDG_BIN_HOME = config.home.sessionVariables.XDG_BIN_HOME;
|
||||
in {
|
||||
|
||||
# Variables set to force apps into the XDG base directories
|
||||
# These will get set at login
|
||||
# Defined in /etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
|
||||
|
@ -47,7 +46,7 @@ in {
|
|||
};
|
||||
|
||||
# Create the following files in XDG_CONFIG_HOME, for purposes of
|
||||
# forcing apps to use the XDG base directories
|
||||
# forcing apps to use the XDG base directories
|
||||
xdg.configFile = {
|
||||
"npm/npmrc".text = ''
|
||||
prefix=${XDG_DATA_HOME}/npm
|
||||
|
@ -77,7 +76,7 @@ in {
|
|||
|
||||
# https://github.com/python/cpython/issues/105694
|
||||
if not history.is_file():
|
||||
readline.write_history_file(str(history)) # breaks on macos + python3 without this.
|
||||
readline.write_history_file(str(history)) # breaks on macos + python3 without this.
|
||||
|
||||
readline.read_history_file(str(history))
|
||||
atexit.register(readline.write_history_file, str(history))
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{config, pkgs, ...}: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./mime-apps.nix
|
||||
./user-dirs.nix
|
||||
|
@ -23,5 +27,5 @@
|
|||
|
||||
# xdg-ninja is a CLI tool that checks $HOME for unwanted
|
||||
# files/dirs and shows how to move them to XDG dirs
|
||||
home.packages = [ pkgs.xdg-ninja ];
|
||||
home.packages = [pkgs.xdg-ninja];
|
||||
}
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
# Manage $XDG_CONFIG_HOME/mimeapps.list
|
||||
{
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
{osConfig, ...}: let
|
||||
cfgPreferences = osConfig.myOptions.home-manager.preferences;
|
||||
in {
|
||||
xdg.mimeApps = let
|
||||
xdg.mimeApps = let
|
||||
browser = cfgPreferences.browser.desktop;
|
||||
textEditor = cfgPreferences.textEditor.desktop;
|
||||
emailClient = cfgPreferences.emailClient.desktop;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Manage $XDG_CONFIG_HOME/user-dirs.dirs
|
||||
{ config, ... }: {
|
||||
{config, ...}: {
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue