Compare commits
47 Commits
4c18fd8c8e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
fa286dce16
|
|||
|
c4454daab6
|
|||
|
a03c9d8227
|
|||
|
9db5d91da6
|
|||
|
72716230ea
|
|||
|
2919e797ed
|
|||
|
86d669c2ab
|
|||
|
77ac5b70b8
|
|||
|
54839be395
|
|||
|
714e3e0683
|
|||
|
a8d7d1e666
|
|||
|
40bcc14304
|
|||
|
fa5bd0eefd
|
|||
|
6182ada581
|
|||
|
4acddcec09
|
|||
|
5c14817464
|
|||
|
38920bd3d7
|
|||
|
b89934d13f
|
|||
|
734dfcadfc
|
|||
|
2c959fdc0c
|
|||
|
e00c4f49f5
|
|||
|
61131ca598
|
|||
|
9c1a39d699
|
|||
|
32de6e24b7
|
|||
|
78e554cc30
|
|||
|
f65617deed
|
|||
|
aa3a881d58
|
|||
|
7f99b73635
|
|||
|
c1360e5c2c
|
|||
|
ca9e66bc35
|
|||
|
eac705bdfb
|
|||
|
69beab4812
|
|||
|
515110ff7d
|
|||
|
9a9bffd637
|
|||
|
f1b269e3ee
|
|||
|
f09dee5ad8
|
|||
|
f246eacdb3
|
|||
|
b7e2bba8f0
|
|||
|
25ae0f4b85
|
|||
|
d12b247368
|
|||
|
25e9128875
|
|||
|
eee28f57fc
|
|||
|
ea03e2266f
|
|||
|
5e422d05c9
|
|||
|
eaa36cfce2
|
|||
|
572d0bfe9e
|
|||
|
385ca27f8c
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ config/neovim/store
|
|||||||
home/modules/ags/config/types
|
home/modules/ags/config/types
|
||||||
home/modules/ags/config/tsconfig.json
|
home/modules/ags/config/tsconfig.json
|
||||||
system/modules/agenix/secrets.nix
|
system/modules/agenix/secrets.nix
|
||||||
|
config/neovim/nvim_bundle
|
||||||
|
|||||||
@ -21,7 +21,7 @@ Contains all the system configurations.
|
|||||||
|
|
||||||
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
|
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
|
||||||
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
|
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
|
||||||
- System modules are located in `NixFlake/system/modules`
|
- System modules are located in `NixFlake/system/systemmodules`
|
||||||
- Hosted services are located in `NixFlake/system/services`
|
- Hosted services are located in `NixFlake/system/services`
|
||||||
|
|
||||||
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
||||||
@ -33,7 +33,7 @@ Contains all the home-manager configurations.
|
|||||||
|
|
||||||
- There is a common configuration for each user: `NixFlake/home/<username>/default.nix`
|
- There is a common configuration for each user: `NixFlake/home/<username>/default.nix`
|
||||||
- There is a configuration for a single system of this user: `NixFlake/home/<username>/<hostname>/default.nix`
|
- There is a configuration for a single system of this user: `NixFlake/home/<username>/<hostname>/default.nix`
|
||||||
- Home-Manager modules are located in `NixFlake/home/modules`
|
- Home-Manager modules are located in `NixFlake/home/homemodules`
|
||||||
|
|
||||||
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
||||||
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
|
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
|
||||||
|
|||||||
@ -68,7 +68,7 @@ rec {
|
|||||||
# bintools = pkgs.bintools.bintools; # Unwrapped bintools
|
# bintools = pkgs.bintools.bintools; # Unwrapped bintools
|
||||||
# libc = pkgs.glibc;
|
# libc = pkgs.glibc;
|
||||||
# };
|
# };
|
||||||
# gcc = pkgs.hiPrio (pkgs.wrapCCWith {
|
# gcc = lib.hiPrio (pkgs.wrapCCWith {
|
||||||
# cc = pkgs.gcc.cc; # Unwrapped gcc
|
# cc = pkgs.gcc.cc; # Unwrapped gcc
|
||||||
# libc = pkgs.glibc;
|
# libc = pkgs.glibc;
|
||||||
# bintools = bintools;
|
# bintools = bintools;
|
||||||
@ -84,7 +84,7 @@ rec {
|
|||||||
# bintools = pkgs.bintools.bintools; # Unwrapped bintools
|
# bintools = pkgs.bintools.bintools; # Unwrapped bintools
|
||||||
# libc = pkgs.glibc_multi;
|
# libc = pkgs.glibc_multi;
|
||||||
# };
|
# };
|
||||||
# gcc_multilib = pkgs.hiPrio (pkgs.wrapCCWith {
|
# gcc_multilib = lib.hiPrio (pkgs.wrapCCWith {
|
||||||
# cc = pkgs.gcc.cc; # Unwrapped gcc
|
# cc = pkgs.gcc.cc; # Unwrapped gcc
|
||||||
# libc = pkgs.glibc_multi;
|
# libc = pkgs.glibc_multi;
|
||||||
# bintools = bintools_multilib;
|
# bintools = bintools_multilib;
|
||||||
|
|||||||
@ -210,6 +210,10 @@ Convert line endings to dos format
|
|||||||
unix2dos <file>
|
unix2dos <file>
|
||||||
$ file: eza -1
|
$ file: eza -1
|
||||||
|
|
||||||
|
% tiddl
|
||||||
|
Download stuff from tidal
|
||||||
|
tiddl download --track-quality max --path ~/Downloads/Beet/Albums --videos none url "<url>"
|
||||||
|
|
||||||
; ===========================
|
; ===========================
|
||||||
; SECRETS
|
; SECRETS
|
||||||
; ===========================
|
; ===========================
|
||||||
|
|||||||
204
config/neovim/bundle.py
Normal file
204
config/neovim/bundle.py
Normal file
@ -0,0 +1,204 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
from typing import cast
|
||||||
|
from urllib.request import urlretrieve
|
||||||
|
|
||||||
|
INIT_LUA: str = "/home/christoph/.config/nvim/init.lua"
|
||||||
|
|
||||||
|
|
||||||
|
def patch_paths(text: str, mappings: dict[str, str]) -> str:
|
||||||
|
"""Patches /nix/store paths in init.lua"""
|
||||||
|
|
||||||
|
patched = text
|
||||||
|
|
||||||
|
for old, new in mappings.items():
|
||||||
|
print(f"Patching init.lua: {old} -> {new}")
|
||||||
|
patched = patched.replace(old, new)
|
||||||
|
|
||||||
|
return patched
|
||||||
|
|
||||||
|
|
||||||
|
def patch_various(text: str) -> str:
|
||||||
|
"""Patches various incompatibilities with NixVim init.lua"""
|
||||||
|
|
||||||
|
# Install lazy
|
||||||
|
print("Patching init.lua: Bootstrap lazy.nvim")
|
||||||
|
patched = (
|
||||||
|
"""-- Bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
vim.api.nvim_echo({
|
||||||
|
{ "Failed to clone lazy.nvim:\\n", "ErrorMsg" },
|
||||||
|
{ out, "WarningMsg" },
|
||||||
|
{ "\\nPress any key to exit..." },
|
||||||
|
}, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
"""
|
||||||
|
+ text
|
||||||
|
)
|
||||||
|
|
||||||
|
# print("Patching init.lua: Disabling vim.loader")
|
||||||
|
# patched = patched.replace("vim.loader.enable(true)", "vim.loader.enable(false)")
|
||||||
|
|
||||||
|
return patched
|
||||||
|
|
||||||
|
|
||||||
|
def copy_plugins(text: str, path: str) -> dict[str, str]:
|
||||||
|
"""Copies NeoVim plugins from the Nix Store"""
|
||||||
|
|
||||||
|
os.makedirs(path, exist_ok=True)
|
||||||
|
|
||||||
|
plugins_path: str = re.findall(r"\"(/nix/store/.*-lazy-plugins)\"", text)[0]
|
||||||
|
print(f"Copying: {plugins_path} -> {path}/plugins")
|
||||||
|
_ = shutil.copytree(plugins_path, f"{path}/plugins")
|
||||||
|
|
||||||
|
treesitter_path: str = re.findall(
|
||||||
|
r"\"(/nix/store/.*-vimplugin-nvim-treesitter.*)\"", text
|
||||||
|
)[0]
|
||||||
|
print(f"Copying: {treesitter_path} -> {path}/treesitter")
|
||||||
|
_ = shutil.copytree(treesitter_path, f"{path}/treesitter")
|
||||||
|
|
||||||
|
parsers_path: str = re.findall(r"\"(/nix/store/.*-treesitter-parsers)\"", text)[0]
|
||||||
|
print(f"Copying: {parsers_path} -> {path}/parsers")
|
||||||
|
_ = shutil.copytree(parsers_path, f"{path}/parsers")
|
||||||
|
|
||||||
|
return {
|
||||||
|
plugins_path: "./plugins",
|
||||||
|
treesitter_path: "./treesitter",
|
||||||
|
parsers_path: "./parsers",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def write_file(text: str, path: str) -> None:
|
||||||
|
"""Write text to a file"""
|
||||||
|
|
||||||
|
with open(path, "w") as file:
|
||||||
|
_ = file.write(text)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: Could add etc. nvim/lsp/formatter/linter binaries here
|
||||||
|
# TODO: Needs "install recipe", as in most cases the download will be an archive
|
||||||
|
DOWNLOADS: list[tuple[str, str]] = [
|
||||||
|
# (
|
||||||
|
# "https://github.com/neovim/neovim/releases/download/v0.11.6/nvim-linux-x86_64.tar.gz",
|
||||||
|
# "nvim",
|
||||||
|
# ),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def download_binaries(path: str, urls: list[tuple[str, str]]) -> None:
|
||||||
|
"""Download required binaries"""
|
||||||
|
|
||||||
|
os.makedirs(f"{path}/bin", exist_ok=True)
|
||||||
|
|
||||||
|
def download(url: str, path: str) -> None:
|
||||||
|
"""Download from URL"""
|
||||||
|
|
||||||
|
print(f"Downloading: {url}")
|
||||||
|
_ = urlretrieve(url, path)
|
||||||
|
|
||||||
|
for url, name in urls:
|
||||||
|
download(url, f"{path}/bin/{name}")
|
||||||
|
|
||||||
|
|
||||||
|
def build_nvim(path: str) -> None:
|
||||||
|
"""Builds a static nvim binary against musl"""
|
||||||
|
|
||||||
|
# TODO: Build etc. is working, but on the target system there are
|
||||||
|
# lua-ffi errors from noice.nvim with the static binary.
|
||||||
|
# This does not happen with nvim from system package repository.
|
||||||
|
|
||||||
|
def run(command: list[str]) -> None:
|
||||||
|
"""Run a subprocess"""
|
||||||
|
|
||||||
|
print(f"Running: {' '.join(command)}")
|
||||||
|
_ = subprocess.run(command)
|
||||||
|
|
||||||
|
os.makedirs(f"{path}/nvim-build", exist_ok=True)
|
||||||
|
|
||||||
|
with open(f"{path}/nvim-build/build-nvim.sh", "w") as file:
|
||||||
|
_ = file.write(
|
||||||
|
"\n".join(
|
||||||
|
[
|
||||||
|
"#!/bin/sh",
|
||||||
|
"git clone https://github.com/neovim/neovim",
|
||||||
|
"cd neovim",
|
||||||
|
"git checkout stable",
|
||||||
|
'make -j$(nproc) CMAKE_BUILD_TYPE=Release CMAKE_EXTRA_FLAGS="-DSTATIC_BUILD=1"',
|
||||||
|
"make CMAKE_INSTALL_PREFIX=/workdir/install install",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
run(
|
||||||
|
[
|
||||||
|
"docker",
|
||||||
|
"run",
|
||||||
|
"--rm",
|
||||||
|
"-it",
|
||||||
|
"-v",
|
||||||
|
f"{os.path.abspath(path)}/nvim-build:/workdir",
|
||||||
|
"-w",
|
||||||
|
"/workdir",
|
||||||
|
"alpine:3.23.3",
|
||||||
|
"/bin/sh",
|
||||||
|
"-c",
|
||||||
|
"apk add build-base cmake coreutils curl gettext-tiny-dev git && chmod +x ./build-nvim.sh && ./build-nvim.sh",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
_ = shutil.copytree(f"{path}/nvim-build/install/bin", f"{path}/bin")
|
||||||
|
_ = shutil.copytree(f"{path}/nvim-build/install/lib", f"{path}/lib")
|
||||||
|
_ = shutil.copytree(f"{path}/nvim-build/install/share", f"{path}/share")
|
||||||
|
|
||||||
|
_ = shutil.rmtree(f"{path}/nvim-build")
|
||||||
|
|
||||||
|
|
||||||
|
def bundle() -> None:
|
||||||
|
"""Creates a standalone NeoVim bundle from the NixVim configuration"""
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
_ = parser.add_argument(
|
||||||
|
"--config",
|
||||||
|
type=str,
|
||||||
|
default=INIT_LUA,
|
||||||
|
help="init.lua or other config file",
|
||||||
|
)
|
||||||
|
_ = parser.add_argument(
|
||||||
|
"--out",
|
||||||
|
type=str,
|
||||||
|
default="./nvim_bundle",
|
||||||
|
help="destination folder",
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
args.config = cast(str, args.config)
|
||||||
|
args.out = cast(str, args.out)
|
||||||
|
|
||||||
|
with open(args.config, "r") as file:
|
||||||
|
patched_init_lua: str = file.read()
|
||||||
|
|
||||||
|
path_mappings = copy_plugins(patched_init_lua, args.out)
|
||||||
|
patched_init_lua = patch_paths(patched_init_lua, path_mappings)
|
||||||
|
patched_init_lua = patch_various(patched_init_lua)
|
||||||
|
write_file(patched_init_lua, f"{args.out}/init.lua")
|
||||||
|
|
||||||
|
# build_nvim(args.out)
|
||||||
|
# download_binaries(args.out, DOWNLOADS)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
bundle()
|
||||||
6
config/neovim/info.md
Normal file
6
config/neovim/info.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# NeoVim Portable
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Base packages: `sudo apt install neovim git direnv ripgrep curl fzf`
|
||||||
|
- Link or copy the generated `nvim_bundle` to `~/.config/nvim` on the target machine
|
||||||
@ -7,7 +7,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# create a module that only contains the options, type can be home or system
|
# create a module that only contains the options, type can be home or system
|
||||||
toModule = type: name: {options.modules.${name} = import ../../${type}/modules/${name}/options.nix {inherit lib mylib;};};
|
toModule = type: name: {options.systemmodules.${name} = import ../../${type}/modules/${name}/options.nix {inherit lib mylib;};};
|
||||||
|
|
||||||
# evaluate a single module
|
# evaluate a single module
|
||||||
evalModule = type: name: (lib.evalModules {modules = [(toModule type name)];});
|
evalModule = type: name: (lib.evalModules {modules = [(toModule type name)];});
|
||||||
|
|||||||
@ -9,4 +9,5 @@
|
|||||||
msty = pkgs.callPackage ./msty {};
|
msty = pkgs.callPackage ./msty {};
|
||||||
unityhub = pkgs.callPackage ./unityhub {};
|
unityhub = pkgs.callPackage ./unityhub {};
|
||||||
tidal-dl-ng = pkgs.callPackage ./tidal-dl-ng {};
|
tidal-dl-ng = pkgs.callPackage ./tidal-dl-ng {};
|
||||||
|
tiddl = pkgs.callPackage ./tiddl {};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
# sha256 = "sha256-Gq9klAMXk+SHb7C6z6apErVRz0PB5jyADfixqGZyDDc=";
|
# sha256 = "sha256-Gq9klAMXk+SHb7C6z6apErVRz0PB5jyADfixqGZyDDc=";
|
||||||
# };
|
# };
|
||||||
# });
|
# });
|
||||||
|
#
|
||||||
# rich_14_2_0 = pkgs.python313Packages.rich.overridePythonAttrs (old: {
|
# rich_14_2_0 = pkgs.python313Packages.rich.overridePythonAttrs (old: {
|
||||||
# version = "14.2.0";
|
# version = "14.2.0";
|
||||||
# src = pkgs.python313Packages.fetchPypi {
|
# src = pkgs.python313Packages.fetchPypi {
|
||||||
@ -49,22 +49,12 @@
|
|||||||
# doCheck = false;
|
# doCheck = false;
|
||||||
# });
|
# });
|
||||||
|
|
||||||
# rich_14_2_0 = pkgs.python313Packages.rich.overridePythonAttrs (old: {
|
|
||||||
# version = "14.2.0";
|
|
||||||
# src = pkgs.fetchFromGitHub {
|
|
||||||
# owner = "Textualize";
|
|
||||||
# repo = "rich";
|
|
||||||
# tag = "v14.2.0";
|
|
||||||
# hash = "sha256-oQbxRbZnVr/Ln+i/hpBw5FlpUp3gcp/7xsxi6onPkn8=";
|
|
||||||
# };
|
|
||||||
# });
|
|
||||||
|
|
||||||
tidalDlNg = pythonPkgs.buildPythonApplication rec {
|
tidalDlNg = pythonPkgs.buildPythonApplication rec {
|
||||||
pname = "tidal-dl-ng";
|
pname = "tidal_dl_ng_for_dj";
|
||||||
version = "0.31.3";
|
version = "0.33.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
# TODO: The official repo was deleted, find the new one once it pops up
|
# The official repo was deleted
|
||||||
# src = pkgs.fetchFromGitHub {
|
# src = pkgs.fetchFromGitHub {
|
||||||
# owner = "exislow";
|
# owner = "exislow";
|
||||||
# repo = "tidal-dl-ng";
|
# repo = "tidal-dl-ng";
|
||||||
@ -72,16 +62,20 @@
|
|||||||
# sha256 = "sha256-PUT0anx1yivgXwW21jah7Rv1/BabOT+KPoW446NFNyg=";
|
# sha256 = "sha256-PUT0anx1yivgXwW21jah7Rv1/BabOT+KPoW446NFNyg=";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
# Package now also deleted from PyPi
|
||||||
owner = "rodvicj";
|
# src = pythonPkgs.fetchPypi {
|
||||||
repo = "tidal_dl_ng-Project";
|
# inherit pname version;
|
||||||
rev = "4573142c76ef045ebf8e80c34657dd2bec96f17d";
|
# sha256 = "sha256-rOMyxnT7uVnMbn678DFtqAu4+Uc5VFGcqGI0jxplnpc=";
|
||||||
sha256 = "sha256-3sO2qj8V4KXOWK7vQsFAOYeTZo2rsc/M36SwRnC0oVg=";
|
# };
|
||||||
|
|
||||||
|
# TODO: Borked
|
||||||
|
# "For DJ"-Fork
|
||||||
|
src = pythonPkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-605cgBqZV6L7sxWtEa4Ki+9hBqX4m3Rk+X5oY5bv/FQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
dontCheckRuntimeDeps = true;
|
||||||
catchConflicts = false;
|
|
||||||
strictDeps = false;
|
|
||||||
|
|
||||||
nativeBuildInputs = with pythonPkgs; [poetry-core setuptools];
|
nativeBuildInputs = with pythonPkgs; [poetry-core setuptools];
|
||||||
|
|
||||||
@ -134,7 +128,7 @@
|
|||||||
|
|
||||||
tidal-dl-ng-gui-desktopfile = pkgs.stdenv.mkDerivation {
|
tidal-dl-ng-gui-desktopfile = pkgs.stdenv.mkDerivation {
|
||||||
pname = "tdng";
|
pname = "tdng";
|
||||||
version = "0.31.3";
|
version = "0.33.2";
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
nativeBuildInputs = [pkgs.makeWrapper];
|
nativeBuildInputs = [pkgs.makeWrapper];
|
||||||
|
|||||||
60
derivations/tiddl/default.nix
Normal file
60
derivations/tiddl/default.nix
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
pkgs,
|
||||||
|
}: let
|
||||||
|
pythonPkgs = pkgs.python314Packages.overrideScope (self: super: {
|
||||||
|
typer = super.typer.overridePythonAttrs (old: {
|
||||||
|
version = "0.20.1";
|
||||||
|
src = pkgs.fetchPypi {
|
||||||
|
pname = "typer";
|
||||||
|
version = "0.20.0";
|
||||||
|
sha256 = "sha256-Gq9klAMXk+SHb7C6z6apErVRz0PB5jyADfixqGZyDDc=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
aiofiles = super.aiofiles.overridePythonAttrs (old: {
|
||||||
|
version = "25.1.0";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "Tinche";
|
||||||
|
repo = "aiofiles";
|
||||||
|
tag = "v25.1.0";
|
||||||
|
hash = "sha256-NBmzoUb2una3+eWqR1HraVPibaRb9I51aYwskrjxskQ=";
|
||||||
|
};
|
||||||
|
# Build system changed in this version
|
||||||
|
build-system = with pythonPkgs; [
|
||||||
|
hatchling
|
||||||
|
hatch-vcs
|
||||||
|
];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pythonPkgs.buildPythonApplication rec {
|
||||||
|
pname = "tiddl";
|
||||||
|
version = "3.2.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = pythonPkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-uLkGyIScYPqFgQdPAOYJDJG0jp+nDAwIl2kFkaJZFco=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontCheckRuntimeDeps = true;
|
||||||
|
|
||||||
|
build-system = with pythonPkgs; [
|
||||||
|
poetry-core
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPkgs; [
|
||||||
|
# Nixpkgs
|
||||||
|
aiofiles
|
||||||
|
aiohttp
|
||||||
|
m3u8
|
||||||
|
mutagen
|
||||||
|
pydantic
|
||||||
|
requests
|
||||||
|
requests-cache
|
||||||
|
typer
|
||||||
|
];
|
||||||
|
}
|
||||||
231
flake.lock
generated
231
flake.lock
generated
@ -20,11 +20,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767024902,
|
"lastModified": 1770895474,
|
||||||
"narHash": "sha256-sMdk6QkMDhIOnvULXKUM8WW8iyi551SWw2i6KQHbrrU=",
|
"narHash": "sha256-JBcrq1Y0uw87VZdYsByVbv+GBuT6ECaCNb9txLX9UuU=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "b8a0c5ba5a9fbd2c660be7dd98bdde0ff3798556",
|
"rev": "a494d50d32b5567956b558437ceaa58a380712f7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -44,11 +44,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768659593,
|
"lastModified": 1771120934,
|
||||||
"narHash": "sha256-Cjm5dbWWds9fLvOXHG5Co8Lfgv4/o3h7KhtfhLM28cU=",
|
"narHash": "sha256-CnE8v42+SU7uLjTit453knxuwsMxZixEPU4s/6JANjs=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "shell",
|
"repo": "shell",
|
||||||
"rev": "fd1165f1530b55c0751f8af7475d0c588b11488c",
|
"rev": "3a7309294cd4575e60aeb5e153d346313b16f7d9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -68,11 +68,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768010798,
|
"lastModified": 1771075454,
|
||||||
"narHash": "sha256-CmEy/t3CCDnUvn594sXtv0vRxt1JQaqj0nGdtQFU3mA=",
|
"narHash": "sha256-5GlUpibCTqcXq/kCwkLHQGfjuBk2r+ZlWY0MjZo0xtE=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "cli",
|
"repo": "cli",
|
||||||
"rev": "70a8624eacfc1b90fe248aef722ae708e775a927",
|
"rev": "d890f7c3af4e7a900338bdf6400c2cf76de89a19",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -104,11 +104,11 @@
|
|||||||
"quickshell": "quickshell"
|
"quickshell": "quickshell"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768670844,
|
"lastModified": 1771307672,
|
||||||
"narHash": "sha256-6jntj2RVC3ceEFd1dWKUlLkV/UUkCfcv6KR+yBt7DgA=",
|
"narHash": "sha256-mCSP9umAD05fp4y49rCvaNgzNol1eiQ39pNmyf5jikw=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "DankMaterialShell",
|
"repo": "DankMaterialShell",
|
||||||
"rev": "27f0df07af950c378054264eda384978d95c7f80",
|
"rev": "ef19568dd7260c07ba7ba1ca793117da28251407",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -117,16 +117,36 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"danksearch": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771177088,
|
||||||
|
"narHash": "sha256-n6e4e0iHNwtdGOlkJlDR9lbFhYalLMuqeQ3jDfp1CaA=",
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "danksearch",
|
||||||
|
"rev": "3b3b79514acf349c166ae53db2225470a28be9e6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "danksearch",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"devshell": {
|
"devshell": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764011051,
|
"lastModified": 1768818222,
|
||||||
"narHash": "sha256-M7SZyPZiqZUR/EiiBJnmyUbOi5oE/03tCeFrTiUZchI=",
|
"narHash": "sha256-460jc0+CZfyaO8+w8JNtlClB2n4ui1RbHfPTLkpwhU8=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "17ed8d9744ebe70424659b0ef74ad6d41fc87071",
|
"rev": "255a2b1725a20d060f566e4755dbf571bbbb5f76",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -142,11 +162,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746728054,
|
"lastModified": 1768920986,
|
||||||
"narHash": "sha256-eDoSOhxGEm2PykZFa/x9QG5eTH0MJdiJ9aR00VAofXE=",
|
"narHash": "sha256-CNzzBsRhq7gg4BMBuTDObiWDH/rFYHEuDRVOwCcwXw4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "ff442f5d1425feb86344c028298548024f21256d",
|
"rev": "de5708739256238fb912c62f03988815db89ec9a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -292,11 +312,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765835352,
|
"lastModified": 1769996383,
|
||||||
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
|
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
|
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -390,11 +410,11 @@
|
|||||||
},
|
},
|
||||||
"hardware": {
|
"hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768584846,
|
"lastModified": 1771257191,
|
||||||
"narHash": "sha256-IRPmIOV2tPwxbhP/I9M5AmwhTC0lMPtoPStC+8T6xl0=",
|
"narHash": "sha256-H1l+zHq+ZinWH7F1IidpJ2farmbfHXjaxAm1RKWE1KI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "cce68f4a54fa4e3d633358364477f5cc1d782440",
|
"rev": "66e1a090ded57a0f88e2b381a7d4daf4a5722c3f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -410,11 +430,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768598210,
|
"lastModified": 1771269455,
|
||||||
"narHash": "sha256-kkgA32s/f4jaa4UG+2f8C225Qvclxnqs76mf8zvTVPg=",
|
"narHash": "sha256-BZ31eN5F99YH6vkc4AhzKGE+tJgJ52kl8f01K7wCs8w=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c47b2cc64a629f8e075de52e4742de688f930dc6",
|
"rev": "5f1d42a97b19803041434f66681d5c44c9ae62e3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -431,11 +451,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747978958,
|
"lastModified": 1768598210,
|
||||||
"narHash": "sha256-pQQnbxWpY3IiZqgelXHIe/OAE/Yv4NSQq7fch7M6nXQ=",
|
"narHash": "sha256-kkgA32s/f4jaa4UG+2f8C225Qvclxnqs76mf8zvTVPg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "7419250703fd5eb50e99bdfb07a86671939103ea",
|
"rev": "c47b2cc64a629f8e075de52e4742de688f930dc6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -454,11 +474,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768644786,
|
"lastModified": 1769328881,
|
||||||
"narHash": "sha256-0nfqa8f7/at2hQTq5rbz69S+nmp6RzAtX0kf8OiJBrU=",
|
"narHash": "sha256-y61NGkedVL4krfEkPCpngsYxGujCYcx+ryBGVrgeszE=",
|
||||||
"owner": "VirtCode",
|
"owner": "VirtCode",
|
||||||
"repo": "hypr-dynamic-cursors",
|
"repo": "hypr-dynamic-cursors",
|
||||||
"rev": "b92d2db9c9f045e50e4c0e97e96b88ea86f43cd3",
|
"rev": "bf761c322dbd675399e6e33628d9fb4545c59ad3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -512,11 +532,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766946335,
|
"lastModified": 1770511807,
|
||||||
"narHash": "sha256-MRD+Jr2bY11MzNDfenENhiK6pvN+nHygxdHoHbZ1HtE=",
|
"narHash": "sha256-suKmSbSk34uPOJDTg/GbPrKEJutzK08vj0VoTvAFBCA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprgraphics",
|
"repo": "hyprgraphics",
|
||||||
"rev": "4af02a3925b454deb1c36603843da528b67ded6c",
|
"rev": "7c75487edd43a71b61adb01cae8326d277aab683",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -544,11 +564,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768660279,
|
"lastModified": 1771249510,
|
||||||
"narHash": "sha256-ak7mm3HiluwyMXHadoEzhrzzMGz2T1UkOVL0N0sbYUc=",
|
"narHash": "sha256-Iql2BwsfrHiyDmZfc/9Cp6oa2569/WrJqhqWWg3EY50=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "c99eb23869da2b80e3613a886aa1b99851367a3c",
|
"rev": "661314e13487784c94b3c9fd69b469764eb6ef7b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -618,11 +638,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767723101,
|
"lastModified": 1770899531,
|
||||||
"narHash": "sha256-jObY8O7OI+91hoE137APsDxm0235/Yx+HhFIip187zM=",
|
"narHash": "sha256-UBrWjh0DR8db60aLNkTnZTJ9F4kWK0Y7rUDNJC88W7A=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprland-plugins",
|
"repo": "hyprland-plugins",
|
||||||
"rev": "fef398ed5e4faf59bc43b915e46a75cfe8b16697",
|
"rev": "e03c34ccd51280a44ea6d1f5c040cd81ecca25ed",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -672,11 +692,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764612430,
|
"lastModified": 1767983607,
|
||||||
"narHash": "sha256-54ltTSbI6W+qYGMchAgCR6QnC1kOdKXN6X6pJhOWxFg=",
|
"narHash": "sha256-8C2co8NYfR4oMOUEsPROOJ9JHrv9/ktbJJ6X1WsTbXc=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprlang",
|
||||||
"rev": "0d00dc118981531aa731150b6ea551ef037acddd",
|
"rev": "d4037379e6057246b408bbcf796cf3e9838af5b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -770,11 +790,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766253372,
|
"lastModified": 1770139857,
|
||||||
"narHash": "sha256-1+p4Kw8HdtMoFSmJtfdwjxM4bPxDK9yg27SlvUMpzWA=",
|
"narHash": "sha256-bCqxcXjavgz5KBJ/1CBLqnagMMf9JvU1m9HmYVASKoc=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprutils",
|
"repo": "hyprutils",
|
||||||
"rev": "51a4f93ce8572e7b12b7284eb9e6e8ebf16b4be9",
|
"rev": "9038eec033843c289b06b83557a381a2648d8fa5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -795,11 +815,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763640274,
|
"lastModified": 1770501770,
|
||||||
"narHash": "sha256-Uan1Nl9i4TF/kyFoHnTq1bd/rsWh4GAK/9/jDqLbY5A=",
|
"narHash": "sha256-NWRM6+YxTRv+bT9yvlhhJ2iLae1B1pNH3mAL5wi2rlQ=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwayland-scanner",
|
"repo": "hyprwayland-scanner",
|
||||||
"rev": "f6cf414ca0e16a4d30198fd670ec86df3c89f671",
|
"rev": "0bd8b6cde9ec27d48aad9e5b4deefb3746909d40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -824,11 +844,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767473322,
|
"lastModified": 1770203293,
|
||||||
"narHash": "sha256-RGOeG+wQHeJ6BKcsSB8r0ZU77g9mDvoQzoTKj2dFHwA=",
|
"narHash": "sha256-PR/KER+yiHabFC/h1Wjb+9fR2Uy0lWM3Qld7jPVaWkk=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwire",
|
"repo": "hyprwire",
|
||||||
"rev": "d5e7d6b49fe780353c1cf9a1cf39fa8970bd9d11",
|
"rev": "37bc90eed02b0c8b5a77a0b00867baf3005cfb98",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -843,11 +863,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767822991,
|
"lastModified": 1769548169,
|
||||||
"narHash": "sha256-iyrn9AcPZCoyxX4OT8eMkBsjG7SRUQXXS/V1JzxS7rA=",
|
"narHash": "sha256-03+JxvzmfwRu+5JafM0DLbxgHttOQZkUtDWBmeUkN8Y=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "impermanence",
|
"repo": "impermanence",
|
||||||
"rev": "82e5bc4508cab9e8d5a136626276eb5bbce5e9c5",
|
"rev": "7b1d382faf603b6d264f58627330f9faa5cba149",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -913,11 +933,11 @@
|
|||||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768669983,
|
"lastModified": 1771308899,
|
||||||
"narHash": "sha256-OGl180QZ1QIirJ7Cy9Tqrgn/XEglaKGBeb5pys/sS7Y=",
|
"narHash": "sha256-kb/4oSHB261GOLhVGgrzTOqo/ImeCi/WS25q2ujtHGc=",
|
||||||
"owner": "sodiboo",
|
"owner": "sodiboo",
|
||||||
"repo": "niri-flake",
|
"repo": "niri-flake",
|
||||||
"rev": "b90da048a6ae94b49ff489bacac4a49206670c18",
|
"rev": "f3e98ba073bd7e2717a07d622f9b737c461a97b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -946,11 +966,11 @@
|
|||||||
"niri-unstable": {
|
"niri-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768653140,
|
"lastModified": 1771305475,
|
||||||
"narHash": "sha256-8/u6/KHghsTHb3zmw8hYbwRQIp7UgMyQyqn4zVFN1S0=",
|
"narHash": "sha256-lqweVTwHhYc+9T33cysp38gVwxaibGJHriOPZXWyhCY=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "3ccb06f5644c4bcdf74ad2e4d388a13ac65207af",
|
"rev": "a2a52911757cb3b497db9407592f9b4c439571ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -966,11 +986,11 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768475717,
|
"lastModified": 1771150922,
|
||||||
"narHash": "sha256-185VOlWF4K9gzwr7M56ArjqDt6beN/5TxCYLEyVPOcs=",
|
"narHash": "sha256-+oQJun4CFDlOQRocbZpqQDj7agoy56/4ZjT1oUR7NOs=",
|
||||||
"owner": "thiagokokada",
|
"owner": "thiagokokada",
|
||||||
"repo": "nix-alien",
|
"repo": "nix-alien",
|
||||||
"rev": "a579610c67dc946f39c2a64656699eb29eb2ffb5",
|
"rev": "96045e886ba0dd45b27590e7c0c6e77bbb54033d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1003,11 +1023,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765267181,
|
"lastModified": 1771130777,
|
||||||
"narHash": "sha256-d3NBA9zEtBu2JFMnTBqWj7Tmi7R5OikoU2ycrdhQEws=",
|
"narHash": "sha256-UIKOwG0D9XVIJfNWg6+gENAvQP+7LO46eO0Jpe+ItJ0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "82befcf7dc77c909b0f2a09f5da910ec95c5b78f",
|
"rev": "efec7aaad8d43f8e5194df46a007456093c40f88",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1034,11 +1054,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768484090,
|
"lastModified": 1771208521,
|
||||||
"narHash": "sha256-HBIfbB9MF9oqQTxs/W5440mzVaYDBWU9tuX95aZ8h64=",
|
"narHash": "sha256-X01Q3DgSpjeBpapoGA4rzKOn25qdKxbPnxHeMLNoHTU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d4fa45dc2d4d32c10cb7c6b530a6b4b7d2429442",
|
"rev": "fa56d7d6de78f5a7f997b0ea2bc6efd5868ad9e8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1066,11 +1086,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748026106,
|
"lastModified": 1768564909,
|
||||||
"narHash": "sha256-6m1Y3/4pVw1RWTsrkAK2VMYSzG4MMIj7sqUy7o8th1o=",
|
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "063f43f2dbdef86376cc29ad646c45c46e93234c",
|
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1082,11 +1102,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768305791,
|
"lastModified": 1771008912,
|
||||||
"narHash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=",
|
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e",
|
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1098,11 +1118,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768564909,
|
"lastModified": 1771008912,
|
||||||
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1153,11 +1173,11 @@
|
|||||||
"systems": "systems_3"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768486009,
|
"lastModified": 1771135771,
|
||||||
"narHash": "sha256-I7ymDe6UQooHy9I9wrafKCCDnRbox/EMWAgJgpm7fGs=",
|
"narHash": "sha256-wyvBIhDuyCRyjB3yPg77qoyxrlgQtBR1rVW3c9knV3E=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "03a638205b5cb04ba9c2ed6c604e137b15f07fa1",
|
"rev": "ed0424f0b08d303a7348f52f7850ad1b2704f9ba",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1173,11 +1193,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768675584,
|
"lastModified": 1771320561,
|
||||||
"narHash": "sha256-YcQRhf1AQv0jHey5DMek5UQvkqSs+Q/yktXEm8ymaRA=",
|
"narHash": "sha256-sM+gR+fo9HVtV27gYa4aBtT06wfg1tcyYJ8pjmQ0rRQ=",
|
||||||
"owner": "noctalia-dev",
|
"owner": "noctalia-dev",
|
||||||
"repo": "noctalia-shell",
|
"repo": "noctalia-shell",
|
||||||
"rev": "1d792b01b4cf2160000f7ef6e9388843cf5106d3",
|
"rev": "7c210ef00e289558f6b5d01926760c3b46cd979e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1217,11 +1237,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768671781,
|
"lastModified": 1771321196,
|
||||||
"narHash": "sha256-kW4mzy7wzuW+od/o3Gfg5ONO7nb7U7uUxvEkAyFd9cY=",
|
"narHash": "sha256-I/1/nZOIFByTYZONatUpYdh/Abh2FjlQwtZ7u4r70Nw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "1e87169b18457a22e6ef372789e48cd86b81e2ba",
|
"rev": "250a13346efcfff65f490136e9705233b69d3401",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1240,11 +1260,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767281941,
|
"lastModified": 1770726378,
|
||||||
"narHash": "sha256-6MkqajPICgugsuZ92OMoQcgSHnD6sJHwk8AxvMcIgTE=",
|
"narHash": "sha256-kck+vIbGOaM/dHea7aTBxdFYpeUl/jHOy5W3eyRvVx8=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "f0927703b7b1c8d97511c4116eb9b4ec6645a0fa",
|
"rev": "5eaaedde414f6eb1aea8b8525c466dc37bba95ae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1308,11 +1328,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768549203,
|
"lastModified": 1770693276,
|
||||||
"narHash": "sha256-DxN7v8g8DO8gGJmgBJMo3fsSR3HEs+DFCXeKeHq61zA=",
|
"narHash": "sha256-ngXnN5YXu+f45+QGYNN/VEBMQmcBCYGRCqwaK8cxY1s=",
|
||||||
"owner": "quickshell-mirror",
|
"owner": "quickshell-mirror",
|
||||||
"repo": "quickshell",
|
"repo": "quickshell",
|
||||||
"rev": "d03c59768c680f052dff6e7a7918bbf990b0f743",
|
"rev": "dacfa9de829ac7cb173825f593236bf2c21f637e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1325,6 +1345,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"caelestia": "caelestia",
|
"caelestia": "caelestia",
|
||||||
"dank-material-shell": "dank-material-shell",
|
"dank-material-shell": "dank-material-shell",
|
||||||
|
"danksearch": "danksearch",
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"hardware": "hardware",
|
"hardware": "hardware",
|
||||||
@ -1395,11 +1416,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768481291,
|
"lastModified": 1771166946,
|
||||||
"narHash": "sha256-NjKtkJraCZEnLHAJxLTI+BfdU//9coAz9p5TqveZwPU=",
|
"narHash": "sha256-UFc4lfGBr+wJmwgDGJDn1cVD6DTr0/8TdronNUiyXlU=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "e085e303dfcce21adcb5fec535d65aacb066f101",
|
"rev": "2d0cf89b4404529778bc82de7e42b5754e0fe4fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1476,11 +1497,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767427579,
|
"lastModified": 1771103358,
|
||||||
"narHash": "sha256-q9aFfPohbMS6ehkQHReMeIjtld0wGiUsxlHoPRRvsp4=",
|
"narHash": "sha256-EFU39ivrUUGBzuiwmc94Hxp5uD9hC8Qf80Esh+w8xpE=",
|
||||||
"owner": "adriankarlen",
|
"owner": "adriankarlen",
|
||||||
"repo": "textfox",
|
"repo": "textfox",
|
||||||
"rev": "29c31979e5583d9367247f0af8675f88482ff481",
|
"rev": "e86c0a3a77cbdd8dbbca51b0c190733c8e6788e1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1568,11 +1589,11 @@
|
|||||||
"xwayland-satellite-unstable": {
|
"xwayland-satellite-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768106915,
|
"lastModified": 1771195969,
|
||||||
"narHash": "sha256-HlLo9zH4ULRXlmlIK948cHmdVhxyHgTHxGaoCRlW4k8=",
|
"narHash": "sha256-BUE41HjLIGPjq3U8VXPjf8asH8GaMI7FYdgrIHKFMXA=",
|
||||||
"owner": "Supreeeme",
|
"owner": "Supreeeme",
|
||||||
"repo": "xwayland-satellite",
|
"repo": "xwayland-satellite",
|
||||||
"rev": "72245e108f3b03c3c4474d2de9de2d1830849603",
|
"rev": "536bd32efc935bf876d6de385ec18a1b715c9358",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -80,6 +80,8 @@
|
|||||||
dank-material-shell.url = "github:AvengeMedia/DankMaterialShell";
|
dank-material-shell.url = "github:AvengeMedia/DankMaterialShell";
|
||||||
dank-material-shell.inputs.nixpkgs.follows = "nixpkgs";
|
dank-material-shell.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
# dank-material-shell.inputs.dgop.follows = "dgop";
|
# dank-material-shell.inputs.dgop.follows = "dgop";
|
||||||
|
danksearch.url = "github:AvengeMedia/danksearch";
|
||||||
|
danksearch.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Hyprland (use flake so plugins are not built from source)
|
# Hyprland (use flake so plugins are not built from source)
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
headless,
|
headless,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) color;
|
inherit (config.homemodules) color;
|
||||||
in
|
in
|
||||||
# This is a HM module.
|
# This is a HM module.
|
||||||
# Because no imports/options/config is defined explicitly, everything is treated as config:
|
# Because no imports/options/config is defined explicitly, everything is treated as config:
|
||||||
@ -25,16 +25,6 @@ in
|
|||||||
# Every module (/function) is called with the same arguments as this module.
|
# Every module (/function) is called with the same arguments as this module.
|
||||||
# Arguments with matching names are "plugged in" into the right slots,
|
# Arguments with matching names are "plugged in" into the right slots,
|
||||||
# the case of different arity is handled by always providing ellipses (...) in module definitions.
|
# the case of different arity is handled by always providing ellipses (...) in module definitions.
|
||||||
imports = [
|
|
||||||
# Import the host-specific HM config.
|
|
||||||
# It will be merged with the main config (like all different modules).
|
|
||||||
# Settings regarding a specific host (e.g. desktop or laptop)
|
|
||||||
# should only be made in the host-specific config.
|
|
||||||
./${hostname}
|
|
||||||
|
|
||||||
# Import all of my custom HM modules.
|
|
||||||
../modules
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable and configure my custom HM modules.
|
# Enable and configure my custom HM modules.
|
||||||
paths = rec {
|
paths = rec {
|
||||||
@ -42,7 +32,7 @@ in
|
|||||||
dotfiles = "${nixflake}/config";
|
dotfiles = "${nixflake}/config";
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = {
|
homemodules = {
|
||||||
beets.enable = !headless;
|
beets.enable = !headless;
|
||||||
|
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
@ -99,7 +89,7 @@ in
|
|||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = nixosConfig.programs.hyprland.enable;
|
enable = nixosConfig.programs.hyprland.enable;
|
||||||
dunst.enable = !config.modules.hyprpanel.enable; # Disable for hyprpanel
|
dunst.enable = !config.homemodules.hyprpanel.enable; # Disable for hyprpanel
|
||||||
bars.enable = false;
|
bars.enable = false;
|
||||||
dynamicCursor.enable = false;
|
dynamicCursor.enable = false;
|
||||||
trails.enable = true;
|
trails.enable = true;
|
||||||
@ -112,14 +102,14 @@ in
|
|||||||
|
|
||||||
bindings = lib.mergeAttrsList [
|
bindings = lib.mergeAttrsList [
|
||||||
# Use Rofi if we don't have caelestia
|
# Use Rofi if we don't have caelestia
|
||||||
(lib.optionalAttrs (!config.modules.hyprland.caelestia.enable) {
|
(lib.optionalAttrs (!config.homemodules.hyprland.caelestia.enable) {
|
||||||
"$mainMod, a" = ["exec, rofi -drun-show-actions -show drun"];
|
"$mainMod, a" = ["exec, rofi -drun-show-actions -show drun"];
|
||||||
"$mainMod, c" = ["exec, clipman pick --tool=rofi"];
|
"$mainMod, c" = ["exec, clipman pick --tool=rofi"];
|
||||||
"$mainMod SHIFT, l" = ["exec, loginctl lock-session"];
|
"$mainMod SHIFT, l" = ["exec, loginctl lock-session"];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Caelestia
|
# Caelestia
|
||||||
(lib.optionalAttrs (config.modules.hyprland.caelestia.enable) {
|
(lib.optionalAttrs (config.homemodules.hyprland.caelestia.enable) {
|
||||||
"$mainMod, a" = ["exec, caelestia shell drawers toggle launcher"];
|
"$mainMod, a" = ["exec, caelestia shell drawers toggle launcher"];
|
||||||
# "$mainMod, c" = ["exec, caelestia clipboard"];
|
# "$mainMod, c" = ["exec, caelestia clipboard"];
|
||||||
"$mainMod SHIFT, l" = ["exec, caelestia shell lock lock"];
|
"$mainMod SHIFT, l" = ["exec, caelestia shell lock lock"];
|
||||||
@ -318,10 +308,10 @@ in
|
|||||||
# as nixosConfig won't be available otherwise.
|
# as nixosConfig won't be available otherwise.
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true; # This only does xdg path management
|
enable = true; # This only does xdg path management
|
||||||
mime.enable = nixosConfig.modules.mime.enable;
|
mime.enable = nixosConfig.systemmodules.mime.enable;
|
||||||
|
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = nixosConfig.modules.mime.enable;
|
enable = nixosConfig.systemmodules.mime.enable;
|
||||||
|
|
||||||
associations.added = nixosConfig.xdg.mime.addedAssociations;
|
associations.added = nixosConfig.xdg.mime.addedAssociations;
|
||||||
associations.removed = nixosConfig.xdg.mime.removedAssociations;
|
associations.removed = nixosConfig.xdg.mime.removedAssociations;
|
||||||
@ -392,7 +382,7 @@ in
|
|||||||
config.lib.file.mkOutOfStoreSymlink
|
config.lib.file.mkOutOfStoreSymlink
|
||||||
nixosConfig.sops.templates."nix.conf".path;
|
nixosConfig.sops.templates."nix.conf".path;
|
||||||
}
|
}
|
||||||
(lib.mkIf nixosConfig.modules.desktopportal.termfilechooser.enable {
|
(lib.mkIf nixosConfig.systemmodules.desktopportal.termfilechooser.enable {
|
||||||
".config/xdg-desktop-portal-termfilechooser/config".text = ''
|
".config/xdg-desktop-portal-termfilechooser/config".text = ''
|
||||||
[filechooser]
|
[filechooser]
|
||||||
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
||||||
@ -402,7 +392,7 @@ in
|
|||||||
save_mode = last
|
save_mode = last
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
(lib.mkIf config.modules.git.enable {
|
(lib.mkIf config.homemodules.git.enable {
|
||||||
".ssh/allowed_signers".text = "* ${publicKeys.${username}.ssh}";
|
".ssh/allowed_signers".text = "* ${publicKeys.${username}.ssh}";
|
||||||
})
|
})
|
||||||
(lib.mkIf config.programs.navi.enable {
|
(lib.mkIf config.programs.navi.enable {
|
||||||
@ -487,6 +477,8 @@ in
|
|||||||
lazyjournal # Journalctl viewer
|
lazyjournal # Journalctl viewer
|
||||||
systemctl-tui
|
systemctl-tui
|
||||||
restic # Backups
|
restic # Backups
|
||||||
|
gnumake
|
||||||
|
just
|
||||||
|
|
||||||
# Hardware/Software info
|
# Hardware/Software info
|
||||||
pciutils # lspci
|
pciutils # lspci
|
||||||
@ -508,7 +500,7 @@ in
|
|||||||
imagemagick # Convert image (magic)
|
imagemagick # Convert image (magic)
|
||||||
mp3val # Validate mp3 files
|
mp3val # Validate mp3 files
|
||||||
flac # Validate flac files
|
flac # Validate flac files
|
||||||
spotdl
|
# spotdl
|
||||||
|
|
||||||
# Document utils
|
# Document utils
|
||||||
poppler-utils # pdfunite
|
poppler-utils # pdfunite
|
||||||
@ -569,6 +561,8 @@ in
|
|||||||
audacity
|
audacity
|
||||||
ferdium
|
ferdium
|
||||||
gparted
|
gparted
|
||||||
|
# feishin # electron :(
|
||||||
|
jellyfin-tui
|
||||||
|
|
||||||
# Office
|
# Office
|
||||||
kdePackages.wacomtablet # For xournalpp/krita
|
kdePackages.wacomtablet # For xournalpp/krita
|
||||||
@ -649,7 +643,7 @@ in
|
|||||||
|
|
||||||
eza = {
|
eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Module
|
# TODO: Module
|
||||||
@ -806,7 +800,7 @@ in
|
|||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
imv = {
|
imv = {
|
||||||
@ -824,7 +818,7 @@ in
|
|||||||
|
|
||||||
keychain = {
|
keychain = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
enableXsessionIntegration = !headless;
|
enableXsessionIntegration = !headless;
|
||||||
keys = ["id_ed25519"];
|
keys = ["id_ed25519"];
|
||||||
};
|
};
|
||||||
@ -838,12 +832,12 @@ in
|
|||||||
|
|
||||||
navi = {
|
navi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-index = {
|
nix-index = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
nushell.enable = false;
|
nushell.enable = false;
|
||||||
@ -935,7 +929,7 @@ in
|
|||||||
|
|
||||||
zoxide = {
|
zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -8,12 +8,8 @@
|
|||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
../../modules
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
modules = {
|
homemodules = {
|
||||||
btop.cuda = true;
|
btop.cuda = true;
|
||||||
|
|
||||||
# This has been relocated here from the default config,
|
# This has been relocated here from the default config,
|
||||||
@ -123,6 +119,8 @@
|
|||||||
# jetbrains.idea-ultimate
|
# jetbrains.idea-ultimate
|
||||||
# jetbrains.webstorm
|
# jetbrains.webstorm
|
||||||
# jetbrains.rider
|
# jetbrains.rider
|
||||||
|
zed-editor
|
||||||
|
vscode
|
||||||
|
|
||||||
# Unity Stuff
|
# Unity Stuff
|
||||||
# unityhub
|
# unityhub
|
||||||
@ -135,6 +133,7 @@
|
|||||||
godot_4
|
godot_4
|
||||||
(obs-studio.override {cudaSupport = true;})
|
(obs-studio.override {cudaSupport = true;})
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
|
# davinci-resolve
|
||||||
krita
|
krita
|
||||||
makemkv
|
makemkv
|
||||||
lrcget
|
lrcget
|
||||||
@ -144,6 +143,7 @@
|
|||||||
jellyfin-mpv-shim
|
jellyfin-mpv-shim
|
||||||
# tidal-hifi
|
# tidal-hifi
|
||||||
# tidal-dl-ng # TODO: Borked
|
# tidal-dl-ng # TODO: Borked
|
||||||
|
tiddl
|
||||||
picard
|
picard
|
||||||
handbrake
|
handbrake
|
||||||
teamspeak6-client
|
teamspeak6-client
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
# Here goes the stuff that will only be enabled on the laptop
|
# Here goes the stuff that will only be enabled on the laptop
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
|
||||||
../../modules
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
modules = {
|
homemodules = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
keyboard = {
|
keyboard = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
|
|||||||
@ -6,12 +6,8 @@
|
|||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
../../modules
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
modules = {
|
homemodules = {
|
||||||
btop.cuda = true;
|
btop.cuda = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -6,10 +6,6 @@
|
|||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
../../modules
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
docker-compose
|
docker-compose
|
||||||
|
|||||||
14
home/homemodules/0_template/default.nix
Normal file
14
home/homemodules/0_template/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) TEMPLATE color;
|
||||||
|
in {
|
||||||
|
options.homemodules.TEMPLATE = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf TEMPLATE.enable {};
|
||||||
|
}
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) ags;
|
inherit (config.homemodules) ags;
|
||||||
in {
|
in {
|
||||||
options.modules.ags = import ./options.nix {inherit lib mylib;};
|
options.homemodules.ags = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf ags.enable {
|
config = lib.mkIf ags.enable {
|
||||||
programs.ags = {
|
programs.ags = {
|
||||||
@ -68,7 +68,7 @@ in {
|
|||||||
# ".config/ags".source = config.lib.file.mkOutOfStoreSymlink "${config.paths.nixflake}/home/modules/ags/config";
|
# ".config/ags".source = config.lib.file.mkOutOfStoreSymlink "${config.paths.nixflake}/home/modules/ags/config";
|
||||||
|
|
||||||
# NOTE: Don't symlink to ~/.config/ags/colors.scss, since that is already used by configDir
|
# NOTE: Don't symlink to ~/.config/ags/colors.scss, since that is already used by configDir
|
||||||
".config/_colors.scss".text = with config.modules.color.hex; ''
|
".config/_colors.scss".text = with config.homemodules.color.hex; ''
|
||||||
$dark-rosewater: #${dark.rosewater};
|
$dark-rosewater: #${dark.rosewater};
|
||||||
$dark-flamingo: #${dark.flamingo};
|
$dark-flamingo: #${dark.flamingo};
|
||||||
$dark-pink: #${dark.pink};
|
$dark-pink: #${dark.pink};
|
||||||
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.alacritty;
|
cfg = config.homemodules.alacritty;
|
||||||
in {
|
in {
|
||||||
options.modules.alacritty = import ./options.nix {inherit lib mylib;};
|
options.homemodules.alacritty = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
@ -8,14 +8,14 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.audio;
|
cfg = config.homemodules.audio;
|
||||||
cfgfp = config.modules.flatpak;
|
cfgfp = config.homemodules.flatpak;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../flatpak
|
../flatpak
|
||||||
];
|
];
|
||||||
|
|
||||||
options.modules.audio = import ./options.nix {inherit lib mylib;};
|
options.homemodules.audio = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
@ -12,13 +12,13 @@ with lib;
|
|||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
# This is the current state of the option that this module defines
|
# This is the current state of the option that this module defines
|
||||||
# We use it to determine if the config should be changed below
|
# We use it to determine if the config should be changed below
|
||||||
cfg = config.modules.emacs;
|
cfg = config.homemodules.emacs;
|
||||||
in {
|
in {
|
||||||
imports = [];
|
imports = [];
|
||||||
|
|
||||||
# Options is a vector of options this module defines
|
# Options is a vector of options this module defines
|
||||||
# This module defines only the "emacs" option and suboptions "enable" and "doom"
|
# This module defines only the "emacs" option and suboptions "enable" and "doom"
|
||||||
options.modules.emacs = import ./options.nix {inherit lib mylib;};
|
options.homemodules.emacs = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
# Config is the merged set of all module configurations
|
# Config is the merged set of all module configurations
|
||||||
# Here we define what happens to the config if the module is active (but only if the module is active)
|
# Here we define what happens to the config if the module is active (but only if the module is active)
|
||||||
@ -13,9 +13,9 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.email;
|
cfg = config.homemodules.email;
|
||||||
in {
|
in {
|
||||||
options.modules.email = import ./options.nix {inherit lib mylib;};
|
options.homemodules.email = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
# TODO: Add Maildir to nextcloud sync
|
# TODO: Add Maildir to nextcloud sync
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
@ -12,9 +12,9 @@ with mylib.modules;
|
|||||||
# It is important that every flatpak interaction is handled through this module
|
# It is important that every flatpak interaction is handled through this module
|
||||||
# to prevent that anything is removed by a module although it is required by another one
|
# to prevent that anything is removed by a module although it is required by another one
|
||||||
let
|
let
|
||||||
cfg = config.modules.flatpak;
|
cfg = config.homemodules.flatpak;
|
||||||
in {
|
in {
|
||||||
options.modules.flatpak = import ./options.nix {inherit lib mylib;};
|
options.homemodules.flatpak = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
@ -7,11 +7,11 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.gaming;
|
cfg = config.homemodules.gaming;
|
||||||
cfgfp = config.modules.flatpak;
|
cfgfp = config.homemodules.flatpak;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
# NOTE: I don't know if this is the right approach or if I should use config.modules.flatpak
|
# NOTE: I don't know if this is the right approach or if I should use config.homemodules.flatpak
|
||||||
../flatpak
|
../flatpak
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ in {
|
|||||||
# TODO: SteamTinkerLaunch option
|
# TODO: SteamTinkerLaunch option
|
||||||
# TODO: Dolphin + SteamRomManager option
|
# TODO: Dolphin + SteamRomManager option
|
||||||
|
|
||||||
options.modules.gaming = import ./options.nix {inherit lib mylib;};
|
options.homemodules.gaming = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
@ -10,9 +10,9 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.helix;
|
cfg = config.homemodules.helix;
|
||||||
in {
|
in {
|
||||||
options.modules.helix = import ./options.nix {inherit lib mylib;};
|
options.homemodules.helix = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
@ -9,9 +9,9 @@
|
|||||||
# TODO: Remove this module, put protonmail into the email module
|
# TODO: Remove this module, put protonmail into the email module
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.misc;
|
cfg = config.homemodules.misc;
|
||||||
in {
|
in {
|
||||||
options.modules.misc = import ./options.nix {inherit lib mylib;};
|
options.homemodules.misc = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
@ -12,9 +12,9 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.nextcloud;
|
cfg = config.homemodules.nextcloud;
|
||||||
in {
|
in {
|
||||||
options.modules.nextcloud = import ./options.nix {inherit lib mylib;};
|
options.homemodules.nextcloud = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
@ -8,9 +8,9 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.ranger;
|
cfg = config.homemodules.ranger;
|
||||||
in {
|
in {
|
||||||
options.modules.ranger = import ./options.nix {inherit lib mylib;};
|
options.homemodules.ranger = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
@ -9,9 +9,9 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.vscode;
|
cfg = config.homemodules.vscode;
|
||||||
in {
|
in {
|
||||||
options.modules.vscode = import ./options.nix {inherit lib mylib;};
|
options.homemodules.vscode = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) beets;
|
inherit (config.homemodules) beets;
|
||||||
in {
|
in {
|
||||||
options.modules.beets = import ./options.nix {inherit lib mylib;};
|
options.homemodules.beets = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf beets.enable {
|
config = lib.mkIf beets.enable {
|
||||||
programs.beets = {
|
programs.beets = {
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) btop color;
|
inherit (config.homemodules) btop color;
|
||||||
in {
|
in {
|
||||||
options.modules.btop = import ./options.nix {inherit lib mylib;};
|
options.homemodules.btop = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf btop.enable {
|
config = lib.mkIf btop.enable {
|
||||||
programs.btop = {
|
programs.btop = {
|
||||||
@ -5,9 +5,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) chromium;
|
inherit (config.homemodules) chromium;
|
||||||
in {
|
in {
|
||||||
options.modules.chromium = import ./options.nix {inherit lib mylib;};
|
options.homemodules.chromium = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf chromium.enable {
|
config = lib.mkIf chromium.enable {
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
@ -5,9 +5,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) color;
|
inherit (config.homemodules) color;
|
||||||
in {
|
in {
|
||||||
options.modules.color = import ./options.nix {inherit lib mylib pkgs;};
|
options.homemodules.color = import ./options.nix {inherit lib mylib pkgs;};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
home.packages = let
|
home.packages = let
|
||||||
@ -59,7 +59,7 @@ in {
|
|||||||
++ (lib.optionals color.installPackages color.extraPackages);
|
++ (lib.optionals color.installPackages color.extraPackages);
|
||||||
|
|
||||||
# This module sets its own options to the values specified in a colorscheme file.
|
# This module sets its own options to the values specified in a colorscheme file.
|
||||||
modules.color = let
|
homemodules.color = let
|
||||||
scheme = import ./schemes/${color.scheme}.nix;
|
scheme = import ./schemes/${color.scheme}.nix;
|
||||||
|
|
||||||
# Add the aliases
|
# Add the aliases
|
||||||
@ -37,6 +37,7 @@
|
|||||||
inputs.caelestia.homeManagerModules.default
|
inputs.caelestia.homeManagerModules.default
|
||||||
inputs.dank-material-shell.homeModules.dank-material-shell
|
inputs.dank-material-shell.homeModules.dank-material-shell
|
||||||
inputs.dank-material-shell.homeModules.niri
|
inputs.dank-material-shell.homeModules.niri
|
||||||
|
inputs.danksearch.homeModules.default
|
||||||
|
|
||||||
# NOTE: Do NOT use this, use the system module (the HM module has to rely on fuse)
|
# NOTE: Do NOT use this, use the system module (the HM module has to rely on fuse)
|
||||||
# inputs.impermanence.homeManagerModules.impermanence
|
# inputs.impermanence.homeManagerModules.impermanence
|
||||||
@ -5,9 +5,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) docs;
|
inherit (config.homemodules) docs;
|
||||||
in {
|
in {
|
||||||
options.modules.docs = import ./options.nix {inherit lib mylib;};
|
options.homemodules.docs = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf docs.enable {
|
config = lib.mkIf docs.enable {
|
||||||
home = {
|
home = {
|
||||||
@ -5,9 +5,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) fcitx;
|
inherit (config.homemodules) fcitx;
|
||||||
in {
|
in {
|
||||||
options.modules.fcitx = import ./options.nix {inherit lib mylib;};
|
options.homemodules.fcitx = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf fcitx.enable {
|
config = lib.mkIf fcitx.enable {
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
@ -69,6 +69,7 @@ in [
|
|||||||
(mkBm "Rust" "https://doc.rust-lang.org/stable/book/ch03-00-common-programming-concepts.html")
|
(mkBm "Rust" "https://doc.rust-lang.org/stable/book/ch03-00-common-programming-concepts.html")
|
||||||
(mkBm "RustOS" "https://os.phil-opp.com/")
|
(mkBm "RustOS" "https://os.phil-opp.com/")
|
||||||
(mkBm "Interpreters" "https://craftinginterpreters.com/contents.html")
|
(mkBm "Interpreters" "https://craftinginterpreters.com/contents.html")
|
||||||
|
(mkBm "Godbolt" "https://godbolt.org")
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -6,14 +6,14 @@
|
|||||||
hostname,
|
hostname,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) firefox color;
|
inherit (config.homemodules) firefox color;
|
||||||
in {
|
in {
|
||||||
options.modules.firefox = import ./options.nix {inherit lib mylib;};
|
options.homemodules.firefox = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf firefox.enable {
|
config = lib.mkIf firefox.enable {
|
||||||
textfox = {
|
textfox = {
|
||||||
enable = firefox.textfox;
|
enable = firefox.textfox;
|
||||||
useLegacyExtensions = false;
|
# useLegacyExtensions = false;
|
||||||
profiles = ["default"];
|
profiles = ["default"];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -54,7 +54,9 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [vdhcoapp];
|
home.packages = with pkgs; [
|
||||||
|
# vdhcoapp # No longer required since VDH >= 10
|
||||||
|
];
|
||||||
|
|
||||||
home.sessionVariables = lib.mkMerge [
|
home.sessionVariables = lib.mkMerge [
|
||||||
{
|
{
|
||||||
@ -243,7 +245,7 @@ in {
|
|||||||
# catppuccin-web-file-icons
|
# catppuccin-web-file-icons
|
||||||
clearurls
|
clearurls
|
||||||
# cookie-autodelete
|
# cookie-autodelete
|
||||||
dark-background-light-text
|
# dark-background-light-text
|
||||||
display-_anchors # Easier linking to specific website parts
|
display-_anchors # Easier linking to specific website parts
|
||||||
don-t-fuck-with-paste
|
don-t-fuck-with-paste
|
||||||
# enhancer-for-youtube # Discontinued, use tweaks-for-youtube
|
# enhancer-for-youtube # Discontinued, use tweaks-for-youtube
|
||||||
@ -7,9 +7,9 @@
|
|||||||
nixosConfig,
|
nixosConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) fish color;
|
inherit (config.homemodules) fish color;
|
||||||
in {
|
in {
|
||||||
options.modules.fish = import ./options.nix {inherit lib mylib;};
|
options.homemodules.fish = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf fish.enable {
|
config = lib.mkIf fish.enable {
|
||||||
# https://github.com/catppuccin/fish/blob/main/themes/Catppuccin%20Mocha.theme
|
# https://github.com/catppuccin/fish/blob/main/themes/Catppuccin%20Mocha.theme
|
||||||
@ -47,7 +47,7 @@ in {
|
|||||||
generateCompletions = nixosConfig.programs.fish.generateCompletions;
|
generateCompletions = nixosConfig.programs.fish.generateCompletions;
|
||||||
|
|
||||||
functions = lib.mergeAttrsList [
|
functions = lib.mergeAttrsList [
|
||||||
(lib.optionalAttrs config.modules.nnn.enable {
|
(lib.optionalAttrs config.homemodules.nnn.enable {
|
||||||
nnncd = {
|
nnncd = {
|
||||||
wraps = "nnn";
|
wraps = "nnn";
|
||||||
description = "support nnn quit and change directory";
|
description = "support nnn quit and change directory";
|
||||||
@ -101,7 +101,7 @@ in {
|
|||||||
# Same as above but with args for bat
|
# Same as above but with args for bat
|
||||||
batifyWithArgs = command: args: command + (lib.optionalString config.programs.bat.enable (" | bat " + args));
|
batifyWithArgs = command: args: command + (lib.optionalString config.programs.bat.enable (" | bat " + args));
|
||||||
|
|
||||||
# These can be used for my config.modules and for HM config.programs,
|
# These can be used for my config.homemodules and for HM config.programs,
|
||||||
# as both of these add the package to home.packages
|
# as both of these add the package to home.packages
|
||||||
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
||||||
|
|
||||||
@ -167,15 +167,15 @@ in {
|
|||||||
gcl = "git clone";
|
gcl = "git clone";
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.optionalAttrs config.modules.kitty.enable {ssh = "kitty +kitten ssh";})
|
(lib.optionalAttrs config.homemodules.kitty.enable {ssh = "kitty +kitten ssh";})
|
||||||
|
|
||||||
(abbrify pkgs.lazygit {lg = "lazygit";})
|
(abbrify pkgs.lazygit {lg = "lazygit";})
|
||||||
|
|
||||||
(abbrify pkgs.nix-search-tv {search = "nix-search-tv print --indexes 'nixos,home-manager,nixpkgs,nur' | fzf --preview 'nix-search-tv preview {}' --scheme history";})
|
(abbrify pkgs.nix-search-tv {search = "nix-search-tv print --indexes 'nixos,home-manager,nixpkgs,nur' | fzf --preview 'nix-search-tv preview {}' --scheme history";})
|
||||||
|
|
||||||
# Doesn't work with abbrify because I have nnn.override...
|
# Doesn't work with abbrify because I have nnn.override...
|
||||||
(lib.optionalAttrs config.modules.nnn.enable {n = "nnncd -a";})
|
(lib.optionalAttrs config.homemodules.nnn.enable {n = "nnncd -a";})
|
||||||
(lib.optionalAttrs config.modules.nnn.enable {np = "nnncd -a -P p";})
|
(lib.optionalAttrs config.homemodules.nnn.enable {np = "nnncd -a -P p";})
|
||||||
|
|
||||||
(abbrify pkgs.ranger {r = "ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR";})
|
(abbrify pkgs.ranger {r = "ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR";})
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ in {
|
|||||||
# grep = rg;
|
# grep = rg;
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.optionalAttrs config.modules.rmpc.enable {r = "rcmp";})
|
(lib.optionalAttrs config.homemodules.rmpc.enable {r = "rcmp";})
|
||||||
|
|
||||||
(abbrify pkgs.rsync rec {
|
(abbrify pkgs.rsync rec {
|
||||||
rsync = "rsync -ahv --inplace --partial --info=progress2";
|
rsync = "rsync -ahv --inplace --partial --info=progress2";
|
||||||
@ -197,7 +197,7 @@ in {
|
|||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
settings = {
|
settings = {
|
||||||
# Other config here
|
# Other config here
|
||||||
format = "$all"; # Remove this line to disable the default prompt format
|
format = "$all"; # Remove this line to disable the default prompt format
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) git;
|
inherit (config.homemodules) git;
|
||||||
in {
|
in {
|
||||||
options.modules.git = import ./options.nix {inherit lib mylib;};
|
options.homemodules.git = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf git.enable {
|
config = lib.mkIf git.enable {
|
||||||
programs.diff-so-fancy = {
|
programs.diff-so-fancy = {
|
||||||
@ -8,7 +8,7 @@
|
|||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) hyprland color;
|
inherit (config.homemodules) hyprland color;
|
||||||
|
|
||||||
# Autostart programs
|
# Autostart programs
|
||||||
always-exec = import ./autostart.nix {inherit lib pkgs config hyprland;};
|
always-exec = import ./autostart.nix {inherit lib pkgs config hyprland;};
|
||||||
@ -22,7 +22,7 @@
|
|||||||
"$mainMod, mouse:273" = ["resizewindow"];
|
"$mainMod, mouse:273" = ["resizewindow"];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
options.modules.hyprland = import ./options.nix {inherit lib mylib;};
|
options.homemodules.hyprland = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf hyprland.enable {
|
config = lib.mkIf hyprland.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
@ -46,7 +46,7 @@ in {
|
|||||||
iconTheme.name = color.iconTheme;
|
iconTheme.name = color.iconTheme;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = {
|
homemodules = {
|
||||||
hyprpanel.enable = hyprland.hyprpanel.enable;
|
hyprpanel.enable = hyprland.hyprpanel.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
monitor = config.modules.waybar.monitor;
|
monitor = config.homemodules.waybar.monitor;
|
||||||
font = "${color.font} 11";
|
font = "${color.font} 11";
|
||||||
offset = "10x10";
|
offset = "10x10";
|
||||||
background = color.hexS.base;
|
background = color.hexS.base;
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) hyprpanel color;
|
inherit (config.homemodules) hyprpanel color;
|
||||||
in {
|
in {
|
||||||
options.modules.hyprpanel = import ./options.nix {inherit lib mylib;};
|
options.homemodules.hyprpanel = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf hyprpanel.enable {
|
config = lib.mkIf hyprpanel.enable {
|
||||||
programs.hyprpanel = {
|
programs.hyprpanel = {
|
||||||
@ -5,9 +5,9 @@
|
|||||||
mylib,
|
mylib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) kitty color;
|
inherit (config.homemodules) kitty color;
|
||||||
in {
|
in {
|
||||||
options.modules.kitty = import ./options.nix {inherit lib mylib;};
|
options.homemodules.kitty = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf kitty.enable {
|
config = lib.mkIf kitty.enable {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
@ -15,7 +15,7 @@ in {
|
|||||||
shellIntegration.enableFishIntegration = true;
|
shellIntegration.enableFishIntegration = true;
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
name = "${config.modules.color.font}";
|
name = "${config.homemodules.color.font}";
|
||||||
size = 12;
|
size = 12;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) lazygit color;
|
inherit (config.homemodules) lazygit color;
|
||||||
in {
|
in {
|
||||||
options.modules.lazygit = import ./options.nix {inherit lib mylib;};
|
options.homemodules.lazygit = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf lazygit.enable {
|
config = lib.mkIf lazygit.enable {
|
||||||
programs.lazygit = {
|
programs.lazygit = {
|
||||||
@ -6,9 +6,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) mpd;
|
inherit (config.homemodules) mpd;
|
||||||
in {
|
in {
|
||||||
options.modules.mpd = import ./options.nix {inherit lib mylib;};
|
options.homemodules.mpd = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf mpd.enable {
|
config = lib.mkIf mpd.enable {
|
||||||
services = {
|
services = {
|
||||||
@ -10,9 +10,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) neovim color;
|
inherit (config.homemodules) neovim color;
|
||||||
in {
|
in {
|
||||||
options.modules.neovim = import ./options.nix {inherit lib mylib;};
|
options.homemodules.neovim = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf neovim.enable {
|
config = lib.mkIf neovim.enable {
|
||||||
home = {
|
home = {
|
||||||
@ -38,7 +38,6 @@ in {
|
|||||||
ltex-ls # TODO: Only enable on-demand
|
ltex-ls # TODO: Only enable on-demand
|
||||||
lua-language-server
|
lua-language-server
|
||||||
# nil
|
# nil
|
||||||
nixd
|
|
||||||
basedpyright
|
basedpyright
|
||||||
pyrefly
|
pyrefly
|
||||||
ty
|
ty
|
||||||
@ -50,6 +49,8 @@ in {
|
|||||||
tinymist
|
tinymist
|
||||||
typescript
|
typescript
|
||||||
vscode-langservers-extracted # includes nodejs
|
vscode-langservers-extracted # includes nodejs
|
||||||
|
autotools-language-server
|
||||||
|
just-lsp
|
||||||
|
|
||||||
# Linters
|
# Linters
|
||||||
checkstyle # java
|
checkstyle # java
|
||||||
@ -64,7 +65,6 @@ in {
|
|||||||
# statix # nix (doesn't recognize pipe operator)
|
# statix # nix (doesn't recognize pipe operator)
|
||||||
|
|
||||||
# Formatters
|
# Formatters
|
||||||
alejandra # nix
|
|
||||||
cljfmt
|
cljfmt
|
||||||
python313Packages.black
|
python313Packages.black
|
||||||
google-java-format
|
google-java-format
|
||||||
@ -75,6 +75,8 @@ in {
|
|||||||
rustfmt
|
rustfmt
|
||||||
stylua
|
stylua
|
||||||
typstyle
|
typstyle
|
||||||
|
mbake
|
||||||
|
just-formatter
|
||||||
])
|
])
|
||||||
|
|
||||||
[
|
[
|
||||||
@ -83,6 +85,9 @@ in {
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
lua54Packages.jsregexp # For tree-sitter
|
lua54Packages.jsregexp # For tree-sitter
|
||||||
# nodejs_latest
|
# nodejs_latest
|
||||||
|
|
||||||
|
nixd
|
||||||
|
alejandra # nix
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -349,7 +354,7 @@ in {
|
|||||||
clangd-extensions = rec {
|
clangd-extensions = rec {
|
||||||
name = "clangd_extensions";
|
name = "clangd_extensions";
|
||||||
pkg = pkgs.vimPlugins.clangd_extensions-nvim;
|
pkg = pkgs.vimPlugins.clangd_extensions-nvim;
|
||||||
lazy = true;
|
lazy = false;
|
||||||
config = mkDefaultConfig name;
|
config = mkDefaultConfig name;
|
||||||
opts = {
|
opts = {
|
||||||
inlay_hints = {
|
inlay_hints = {
|
||||||
@ -511,8 +516,10 @@ in {
|
|||||||
html = ["prettierd" "prettier"];
|
html = ["prettierd" "prettier"];
|
||||||
java = ["google-java-format"];
|
java = ["google-java-format"];
|
||||||
javascript = ["prettierd" "prettier"];
|
javascript = ["prettierd" "prettier"];
|
||||||
|
just = ["just"];
|
||||||
latex = ["tex-fmt"];
|
latex = ["tex-fmt"];
|
||||||
lua = ["stylua"];
|
lua = ["stylua"];
|
||||||
|
make = ["bake"];
|
||||||
markdown = ["prettierd" "prettier"];
|
markdown = ["prettierd" "prettier"];
|
||||||
nix = ["alejandra"];
|
nix = ["alejandra"];
|
||||||
python = ["black"];
|
python = ["black"];
|
||||||
@ -842,15 +849,14 @@ in {
|
|||||||
{
|
{
|
||||||
name = "clangd";
|
name = "clangd";
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
root_markers = [
|
# root_markers = [
|
||||||
"Makefile"
|
# "Makefile"
|
||||||
"CMakeLists.txt"
|
# "CMakeLists.txt"
|
||||||
".clang-format"
|
# ".clang-format"
|
||||||
".clang-tidy"
|
# ".clang-tidy"
|
||||||
"compile_commands.json"
|
# "compile_commands.json"
|
||||||
];
|
# ];
|
||||||
|
# workspace_required = true;
|
||||||
workspace_required = true;
|
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
"clangd"
|
"clangd"
|
||||||
@ -877,6 +883,7 @@ in {
|
|||||||
{name = "cmake";}
|
{name = "cmake";}
|
||||||
{name = "cssls";}
|
{name = "cssls";}
|
||||||
{name = "html";} # vscode-langservers-extracted
|
{name = "html";} # vscode-langservers-extracted
|
||||||
|
{name = "just-lsp";} # TODO: Doesn't autostart?
|
||||||
{name = "lua_ls";}
|
{name = "lua_ls";}
|
||||||
{
|
{
|
||||||
name = "ltex";
|
name = "ltex";
|
||||||
@ -887,12 +894,13 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{name = "autotools-language-server";}
|
||||||
# {name = "nil_ls";}
|
# {name = "nil_ls";}
|
||||||
{
|
{
|
||||||
name = "nixd";
|
name = "nixd";
|
||||||
extraOptions.cmd = [
|
extraOptions.cmd = [
|
||||||
"nixd"
|
"nixd"
|
||||||
"--inlay-hints=false"
|
"--inlay-hints=true"
|
||||||
"--semantic-tokens=true"
|
"--semantic-tokens=true"
|
||||||
];
|
];
|
||||||
extraOptions.settings = {
|
extraOptions.settings = {
|
||||||
@ -1836,9 +1844,7 @@ in {
|
|||||||
# _treesitter-context # Ugly
|
# _treesitter-context # Ugly
|
||||||
# _treesitter-refactor # Ugly
|
# _treesitter-refactor # Ugly
|
||||||
];
|
];
|
||||||
lazy = true;
|
lazy = false;
|
||||||
cmd = ["TSModuleInfo"];
|
|
||||||
event = ["BufReadPost" "BufNewFile"];
|
|
||||||
init = ''
|
init = ''
|
||||||
function()
|
function()
|
||||||
-- Fix treesitter grammars/parsers on nix
|
-- Fix treesitter grammars/parsers on nix
|
||||||
@ -1848,7 +1854,10 @@ in {
|
|||||||
'';
|
'';
|
||||||
config = ''
|
config = ''
|
||||||
function(_, opts)
|
function(_, opts)
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
-- require("nvim-treesitter.configs").setup(opts)
|
||||||
|
require("nvim-treesitter").setup(opts)
|
||||||
|
|
||||||
|
-- TODO: Why is GLSL filetype in the treesitter setup???
|
||||||
|
|
||||||
-- GLSL filetypes
|
-- GLSL filetypes
|
||||||
vim.filetype.add {
|
vim.filetype.add {
|
||||||
@ -1866,7 +1875,8 @@ in {
|
|||||||
opts = {
|
opts = {
|
||||||
auto_install = false;
|
auto_install = false;
|
||||||
ensure_installed = [];
|
ensure_installed = [];
|
||||||
parser_install_dir = "${treesitter-parsers}";
|
# parser_install_dir = "${treesitter-parsers}";
|
||||||
|
install_dir = "${treesitter-parsers}";
|
||||||
|
|
||||||
indent = {
|
indent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -1983,6 +1993,39 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
visual-whitespace = rec {
|
||||||
|
name = "visual-whitespace";
|
||||||
|
pkg = pkgs.vimPlugins.visual-whitespace-nvim;
|
||||||
|
event = ["ModeChanged *:[vV\22]"];
|
||||||
|
config = mkDefaultConfig name;
|
||||||
|
opts = {
|
||||||
|
enabled = true;
|
||||||
|
highlight = {
|
||||||
|
link = "Visual";
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
match_types = {
|
||||||
|
space = true;
|
||||||
|
tab = true;
|
||||||
|
nbsp = true;
|
||||||
|
lead = false;
|
||||||
|
trail = false;
|
||||||
|
};
|
||||||
|
list_chars = {
|
||||||
|
space = "·";
|
||||||
|
tab = "↦";
|
||||||
|
nbsp = "␣";
|
||||||
|
lead = "‹";
|
||||||
|
trail = "›";
|
||||||
|
};
|
||||||
|
fileformat_chars = {
|
||||||
|
unix = "↲";
|
||||||
|
mac = "←";
|
||||||
|
dos = "↙";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# wakatime = {
|
# wakatime = {
|
||||||
# name = "wakatime";
|
# name = "wakatime";
|
||||||
# pkg = pkgs.vimPlugins.vim-wakatime;
|
# pkg = pkgs.vimPlugins.vim-wakatime;
|
||||||
@ -2164,6 +2207,7 @@ in {
|
|||||||
typst-preview # Typst support
|
typst-preview # Typst support
|
||||||
ufo # Code folding
|
ufo # Code folding
|
||||||
vimtex # LaTeX support
|
vimtex # LaTeX support
|
||||||
|
visual-whitespace
|
||||||
# wakatime # Time tracking
|
# wakatime # Time tracking
|
||||||
web-devicons # Icons for many plugins
|
web-devicons # Icons for many plugins
|
||||||
which-key # Live keybinding help
|
which-key # Live keybinding help
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user