diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/by-name/nv/nvim/plgs/lsp/servers/servers/ccls/default.nix (renamed from modules/home.legacy/conf/keepassxc/default.nix) | 6 | ||||
| -rwxr-xr-x[-rw-r--r--] | modules/by-name/py/python/pythonrc.py (renamed from modules/home.legacy/conf/python/pythonrc.py) | 7 | ||||
| -rw-r--r-- | modules/home.legacy/conf/default.nix | 2 | ||||
| -rw-r--r-- | modules/home.legacy/conf/keepassxc/keepassxc.ini | 68 | ||||
| -rw-r--r-- | modules/home.legacy/conf/python/default.nix | 15 | ||||
| -rw-r--r-- | modules/home.legacy/pkgs/default.nix | 14 |
6 files changed, 9 insertions, 103 deletions
diff --git a/modules/home.legacy/conf/keepassxc/default.nix b/modules/by-name/nv/nvim/plgs/lsp/servers/servers/ccls/default.nix index 40f61ba0..59e79cd4 100644 --- a/modules/home.legacy/conf/keepassxc/default.nix +++ b/modules/by-name/nv/nvim/plgs/lsp/servers/servers/ccls/default.nix @@ -8,5 +8,9 @@ # You should have received a copy of the License along with this program. # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. {...}: { - xdg.configFile."keepassxc/keepassxc.ini".source = ./keepassxc.ini; + home-manager.users.soispha.programs.nixvim = { + plugins.lsp.servers = { + ccls.enable = true; + }; + }; } diff --git a/modules/home.legacy/conf/python/pythonrc.py b/modules/by-name/py/python/pythonrc.py index b733dc48..cdcf3a4e 100644..100755 --- a/modules/home.legacy/conf/python/pythonrc.py +++ b/modules/by-name/py/python/pythonrc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # nixos-config - My current NixOS configuration # @@ -18,8 +18,8 @@ def is_vanilla() -> bool: def setup_history(): - import os import atexit + import os import readline from pathlib import Path @@ -31,7 +31,8 @@ def setup_history(): history: Path = state_home / "python" / "history" if not os.path.exists(history): - open(history, "w") + with open(history, "w"): + pass readline.read_history_file(str(history)) atexit.register(readline.write_history_file, str(history)) diff --git a/modules/home.legacy/conf/default.nix b/modules/home.legacy/conf/default.nix index cedcf71a..56938359 100644 --- a/modules/home.legacy/conf/default.nix +++ b/modules/home.legacy/conf/default.nix @@ -14,13 +14,11 @@ ./dconf ./gammastep ./himalaya - ./keepassxc ./mail ./mbsync ./mumble ./neomutt ./npm ./prusa_slicer - ./python ]; } diff --git a/modules/home.legacy/conf/keepassxc/keepassxc.ini b/modules/home.legacy/conf/keepassxc/keepassxc.ini deleted file mode 100644 index 326f1d99..00000000 --- a/modules/home.legacy/conf/keepassxc/keepassxc.ini +++ /dev/null @@ -1,68 +0,0 @@ -; nixos-config - My current NixOS configuration -; -; Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> -; SPDX-License-Identifier: GPL-3.0-or-later -; -; This file is part of my nixos-config. -; -; You should have received a copy of the License along with this program. -; If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. - -[General] -AutoSaveAfterEveryChange=true -BackupBeforeSave=true -BackupFilePathPattern=/home/soispha/.local/share/keepassxc/{DB_FILENAME}.old.kdbx -ConfigVersion=2 -HideWindowOnCopy=false - -[Browser] -CustomProxyLocation= -Enabled=true - -[FdoSecrets] -Enabled=true - -[GUI] -AdvancedSettings=true -ApplicationTheme=dark -CompactMode=false -HidePasswords=true -ShowExpiredEntriesOnDatabaseUnlockOffsetDays=1 -TrayIconAppearance=monochrome-light - -[KeeShare] -Active="" -Own="" -QuietSuccess=true - -[PasswordGenerator] -AdditionalChars= -AdvancedMode=true -Braces=true -Dashes=true -EASCII=true -ExcludedChars= -Length=128 -Logograms=true -LowerCase=true -Math=true -Numbers=true -Punctuation=true -Quotes=true -SpecialChars=true -Type=0 -UpperCase=true -WordCount=4 -WordSeparator="," - -[SSHAgent] -Enabled=true - -[Security] -HidePasswordPreviewPanel=true -IconDownloadFallback=true -LockDatabaseIdle=false -LockDatabaseIdleSeconds=960 -PasswordEmptyPlaceholder=true -PasswordsHidden=true -PasswordsRepeatVisible=true diff --git a/modules/home.legacy/conf/python/default.nix b/modules/home.legacy/conf/python/default.nix deleted file mode 100644 index 12764f9f..00000000 --- a/modules/home.legacy/conf/python/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. -{config, ...}: { - xdg.configFile."python/pythonrc".source = ./pythonrc.py; - home.sessionVariables = { - "PYTHONSTARTUP" = "${config.xdg.configHome}/python/pythonrc"; - }; -} diff --git a/modules/home.legacy/pkgs/default.nix b/modules/home.legacy/pkgs/default.nix index 840ffb19..04bd7896 100644 --- a/modules/home.legacy/pkgs/default.nix +++ b/modules/home.legacy/pkgs/default.nix @@ -15,12 +15,6 @@ }: # TODO: Remove this whole file, and move each package to a separate module. <2024-11-16> with pkgs; let - Gui = { - Misc = [ - keepassxc # password manager - ]; - }; - TuiCli = { Misc = [ bc # Smart calculator @@ -100,14 +94,6 @@ in { (concatMap mapFun (concatMap mapFun (concatMap mapFun - (attrValues Gui))))))) - - (concatMap mapFun - (concatMap mapFun - (concatMap mapFun - (concatMap mapFun - (concatMap mapFun - (concatMap mapFun (attrValues TuiCli))))))) ])); } |
