2022-09-07 22:33:02 +02:00
|
|
|
{
|
2023-07-10 05:09:43 +02:00
|
|
|
config,
|
2022-09-07 22:33:02 +02:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2022-09-10 21:19:32 +02:00
|
|
|
homeage,
|
2022-09-07 22:33:02 +02:00
|
|
|
...
|
2022-12-03 20:41:37 +01:00
|
|
|
}: let
|
|
|
|
hostName = "surtur";
|
|
|
|
in {
|
2022-09-06 17:50:26 +02:00
|
|
|
home.username = "$USER";
|
2022-12-03 20:41:37 +01:00
|
|
|
home.sessionVariables.HOSTNAME = "${hostName}";
|
2022-09-06 17:50:26 +02:00
|
|
|
home.homeDirectory = "/home/$USER";
|
2023-08-03 11:50:06 +02:00
|
|
|
home.stateVersion = "23.11";
|
2022-09-06 17:51:26 +02:00
|
|
|
|
2023-08-03 11:45:47 +02:00
|
|
|
# build configuration and switch:
|
|
|
|
# ➜ home-manager switch --no-out-link -b backup --flake~/utils/dotfiles#$HOST
|
|
|
|
|
|
|
|
# alternatively, install HM with:
|
|
|
|
# nix profile install --priority 0 home-manager
|
|
|
|
# hit the issue described here, waiting until resolved:
|
|
|
|
# https://github.com/nix-community/home-manager/issues/2848
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
2023-08-02 12:58:21 +02:00
|
|
|
home.packages = with pkgs; [
|
2023-08-03 11:46:14 +02:00
|
|
|
direnv
|
|
|
|
# lorri and arion are apparently provided by cachix#devenv
|
2023-08-02 12:58:21 +02:00
|
|
|
alejandra
|
|
|
|
statix
|
2023-08-03 11:46:14 +02:00
|
|
|
niv
|
|
|
|
rnix-lsp
|
2023-08-09 17:23:36 +02:00
|
|
|
|
2023-09-08 16:06:42 +02:00
|
|
|
eza
|
2023-08-09 17:23:36 +02:00
|
|
|
ripgrep
|
|
|
|
starship
|
|
|
|
sheldon
|
2023-08-02 12:58:21 +02:00
|
|
|
duf
|
|
|
|
dua
|
|
|
|
du-dust
|
2023-09-05 16:59:24 +02:00
|
|
|
himalaya
|
2023-08-09 17:23:36 +02:00
|
|
|
b3sum
|
|
|
|
cargo-watch
|
2023-08-02 12:58:21 +02:00
|
|
|
zellij
|
|
|
|
cloak
|
|
|
|
headscale
|
|
|
|
btop
|
|
|
|
sops
|
2023-08-03 11:46:53 +02:00
|
|
|
neovim
|
2023-08-09 17:23:36 +02:00
|
|
|
|
|
|
|
nautilus-open-any-terminal
|
|
|
|
|
|
|
|
dhall
|
2023-08-03 11:46:14 +02:00
|
|
|
ccache
|
2023-08-09 17:23:36 +02:00
|
|
|
|
|
|
|
zathura
|
|
|
|
autotiling
|
|
|
|
bemenu
|
|
|
|
swayr
|
|
|
|
kanshi
|
|
|
|
waybar
|
|
|
|
albert
|
2023-08-02 12:58:21 +02:00
|
|
|
];
|
|
|
|
|
2023-10-03 17:11:36 +02:00
|
|
|
imports = [
|
|
|
|
./nix/homeage.nix
|
2023-08-05 16:07:27 +02:00
|
|
|
|
2023-10-03 17:11:36 +02:00
|
|
|
./nix/programs.nix
|
|
|
|
./nix/qutebrowser-userscripts.nix
|
|
|
|
./nix/scripts.nix
|
2022-09-10 21:19:32 +02:00
|
|
|
|
2023-10-03 17:11:36 +02:00
|
|
|
./nix/systemd.nix
|
2022-09-01 22:23:39 +02:00
|
|
|
|
2023-10-03 17:11:36 +02:00
|
|
|
./nix/zsh.nix
|
2022-09-02 23:42:00 +02:00
|
|
|
];
|
|
|
|
|
2023-08-09 17:23:36 +02:00
|
|
|
services = {
|
|
|
|
kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
indicator = true;
|
|
|
|
};
|
2023-09-28 21:03:32 +02:00
|
|
|
|
|
|
|
batsignal = {
|
|
|
|
enable = true;
|
|
|
|
extraArgs = ["-w 25" "-c 15" "-d 10"];
|
|
|
|
};
|
2023-08-09 17:23:36 +02:00
|
|
|
};
|
|
|
|
|
2022-09-02 18:01:13 +02:00
|
|
|
home.file = {
|
2022-09-02 23:12:22 +02:00
|
|
|
".config/kitty/kitty.conf" = {
|
|
|
|
source = .config/kitty/kitty.conf;
|
|
|
|
};
|
|
|
|
|
2023-07-10 00:38:37 +02:00
|
|
|
".vimrc" = {
|
|
|
|
source = ./.vim/vimrc;
|
|
|
|
};
|
2022-12-03 20:41:37 +01:00
|
|
|
".vim/deoplete.vimrc.vim" = {
|
|
|
|
source = ./.vim/deoplete.vimrc.vim;
|
|
|
|
};
|
|
|
|
".vim/gotags.vimrc.vim" = {
|
|
|
|
source = ./.vim/gotags.vimrc.vim;
|
|
|
|
};
|
2023-07-10 00:38:37 +02:00
|
|
|
".vim/python.vimrc.vim" = {
|
|
|
|
source = ./.vim/python.vimrc.vim;
|
|
|
|
};
|
2022-12-03 20:41:37 +01:00
|
|
|
|
2023-08-03 11:46:53 +02:00
|
|
|
".config/nvim/init.vim" = {
|
|
|
|
source = ./.config/nvim/init.vim;
|
|
|
|
};
|
|
|
|
|
2023-08-09 17:23:36 +02:00
|
|
|
".config/systemd/user.conf" = {
|
|
|
|
text = ''
|
|
|
|
[Manager]
|
|
|
|
DefaultTimeoutStarSec=15s
|
|
|
|
DefaultTimeoutStopSec=15s
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-07-10 04:18:04 +02:00
|
|
|
".config/sway/config" = {
|
|
|
|
source = ./.config/sway/config;
|
|
|
|
};
|
|
|
|
".config/sway/env" = {
|
|
|
|
source = ./.config/sway/env;
|
|
|
|
};
|
|
|
|
".config/sway/inputs" = {
|
|
|
|
source = ./.config/sway/inputs;
|
|
|
|
};
|
2023-07-10 05:09:43 +02:00
|
|
|
".config/sway/config.d/dracula.sway" = {
|
|
|
|
source = ./.config/sway/config.d/dracula.sway;
|
|
|
|
};
|
2023-07-10 04:18:04 +02:00
|
|
|
".config/waybar/config" = {
|
|
|
|
source = ./.config/waybar/config;
|
|
|
|
};
|
|
|
|
".config/waybar/style.css" = {
|
|
|
|
source = ./.config/waybar/style.css;
|
|
|
|
};
|
|
|
|
".config/waybar/modules/storage.sh" = {
|
|
|
|
source = ./.config/waybar/modules/storage.sh;
|
|
|
|
};
|
|
|
|
".config/kanshi/config" = {
|
|
|
|
source = ./.config/kanshi/config;
|
|
|
|
};
|
|
|
|
".config/mako/config" = {
|
|
|
|
source = ./.config/mako/config;
|
|
|
|
};
|
2023-10-03 17:11:36 +02:00
|
|
|
".config/swaylock/config" = {
|
|
|
|
source = .config/swaylock/config;
|
|
|
|
};
|
2023-07-10 04:18:04 +02:00
|
|
|
".local/bin/swws.py" = {
|
|
|
|
source = ./bin/swws.py;
|
|
|
|
};
|
|
|
|
".local/bin/sway-locker" = {
|
|
|
|
source = ./bin/sway-locker;
|
|
|
|
};
|
|
|
|
|
2023-08-09 17:23:36 +02:00
|
|
|
".config/albert.conf" = {
|
|
|
|
source = ./.config/albert/albert.conf;
|
|
|
|
};
|
|
|
|
|
2023-08-03 12:09:17 +02:00
|
|
|
".config/direnv/direnv.toml" = {
|
|
|
|
source = ./.config/direnv/direnv.toml;
|
|
|
|
};
|
|
|
|
|
2022-12-03 20:41:37 +01:00
|
|
|
".config/fusuma/config-wl.yml" = {
|
|
|
|
source = ./.config/fusuma/config-wl.yml;
|
|
|
|
};
|
|
|
|
".config/fusuma/config.yml" = {
|
|
|
|
source = ./.config/fusuma/config.yml;
|
|
|
|
};
|
|
|
|
|
2023-07-10 04:27:55 +02:00
|
|
|
".config/git/config-common" = {
|
|
|
|
source = ./.config/git/config;
|
|
|
|
};
|
|
|
|
# host-specific gitconfig.
|
|
|
|
".config/git/config.${hostName}" = {
|
|
|
|
text = ''
|
|
|
|
[user]
|
|
|
|
name = ${hostName}
|
|
|
|
email = wanderer@dotya.ml
|
|
|
|
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBtG6NCgdLHX4ztpfvYNRaslKWZcl6KdTc1DehVH4kAL
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
".config/git/config" = {
|
|
|
|
text = ''
|
|
|
|
[include]
|
|
|
|
path = ~/.config/git/config-common
|
|
|
|
[include]
|
|
|
|
path = ~/.config/git/config.${hostName}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
".config/git/allowed_signers" = {
|
|
|
|
source = ./.config/git/allowed_signers;
|
|
|
|
};
|
|
|
|
|
2022-09-16 12:58:46 +02:00
|
|
|
".cargo/config.toml" = {
|
|
|
|
source = .cargo/config.toml;
|
|
|
|
};
|
|
|
|
|
2023-07-10 04:35:03 +02:00
|
|
|
".npmrc" = {
|
|
|
|
text = ''
|
|
|
|
prefix=''${HOME}/.npm-packages
|
|
|
|
audit=false
|
|
|
|
fund=false
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-09-09 21:02:19 +02:00
|
|
|
".config/tridactyl/tridactylrc" = {
|
|
|
|
source = .config/tridactyl/tridactylrc;
|
|
|
|
};
|
2022-09-09 20:59:43 +02:00
|
|
|
|
2023-07-10 04:35:03 +02:00
|
|
|
".config/bat/config" = {
|
|
|
|
source = .config/bat/config;
|
|
|
|
};
|
|
|
|
|
|
|
|
".ncpamixer.conf" = {
|
|
|
|
source = .config/ncpamixer.conf;
|
|
|
|
};
|
|
|
|
|
|
|
|
".gdbinit" = {
|
|
|
|
text = ''
|
|
|
|
set auto-load safe-path /nix/store
|
|
|
|
set history save on
|
|
|
|
set history size 10000
|
|
|
|
set history remove-duplicates 100
|
|
|
|
set history filename ~/.gdb_history
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-08-18 19:23:43 +02:00
|
|
|
".searchsploit_rc" = {
|
|
|
|
text = ''
|
|
|
|
##-- Program Settings
|
|
|
|
progname="$( basename "$0" )"
|
|
|
|
|
|
|
|
|
|
|
|
##-- Exploits
|
|
|
|
files_array+=("files_exploits.csv")
|
|
|
|
path_array+=("''${HOME}/utils/exploit-database")
|
|
|
|
name_array+=("Exploit")
|
|
|
|
git_array+=("https://gitlab.com/exploit-database/exploitdb.git")
|
|
|
|
package_array+=("exploitdb")
|
|
|
|
|
|
|
|
|
|
|
|
##-- Shellcodes
|
|
|
|
files_array+=("files_shellcodes.csv")
|
|
|
|
path_array+=("''${HOME}/utils/exploit-database")
|
|
|
|
name_array+=("Shellcode")
|
|
|
|
git_array+=("https://gitlab.com/exploit-database/exploitdb.git")
|
|
|
|
package_array+=("exploitdb")
|
|
|
|
|
|
|
|
|
|
|
|
# ##-- Papers
|
|
|
|
# files_array+=("files_papers.csv")
|
|
|
|
# path_array+=("''${HOME}/utils/exploitdb-papers")
|
|
|
|
# name_array+=("Paper")
|
|
|
|
# git_array+=("https://gitlab.com/exploit-database/exploitdb-papers.git")
|
|
|
|
# package_array+=("exploitdb-papers")
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-09-02 18:01:13 +02:00
|
|
|
".local/bin/battery.sh" = {
|
|
|
|
source = bin/battery.sh;
|
|
|
|
executable = true;
|
|
|
|
};
|
|
|
|
".local/bin/localbsync" = {
|
|
|
|
source = bin/localbsync;
|
|
|
|
executable = true;
|
|
|
|
};
|
|
|
|
".local/bin/parec-wr" = {
|
|
|
|
source = bin/parec-wr;
|
|
|
|
executable = true;
|
|
|
|
};
|
|
|
|
".local/bin/pscbg" = {
|
|
|
|
source = bin/pscbg;
|
|
|
|
executable = true;
|
|
|
|
};
|
|
|
|
".local/bin/qst_up" = {
|
|
|
|
source = bin/qst_up;
|
|
|
|
executable = true;
|
|
|
|
};
|
|
|
|
".local/bin/winprint.sh" = {
|
|
|
|
source = bin/winprint.sh;
|
|
|
|
executable = true;
|
|
|
|
};
|
2022-09-02 18:11:18 +02:00
|
|
|
|
2023-10-03 17:11:36 +02:00
|
|
|
".config/qutebrowser/config.py" = {
|
|
|
|
source = .config/qutebrowser/config.py;
|
2023-08-09 21:22:44 +02:00
|
|
|
};
|
|
|
|
|
2022-10-30 02:21:39 +01:00
|
|
|
".config/qutebrowser/greasemonkey/DR.js" = {
|
|
|
|
text = ''
|
|
|
|
// ==UserScript==
|
|
|
|
// @name Dark Reader (Unofficial)
|
|
|
|
// @icon https://darkreader.org/images/darkreader-icon-256x256.png
|
|
|
|
// @namespace DarkReader
|
|
|
|
// @description Inverts the brightness of pages to reduce eye strain
|
|
|
|
// @version 4.9.52
|
|
|
|
// @author https://github.com/darkreader/darkreader#contributors
|
|
|
|
// @homepageURL https://darkreader.org/ | https://github.com/darkreader/darkreader
|
|
|
|
// @run-at document-end
|
|
|
|
// @grant none
|
|
|
|
// @exclude https://git.dotya.ml*
|
|
|
|
// @exclude https://dotya.ml*
|
|
|
|
// @exclude https://status.dotya.ml*
|
|
|
|
// @exclude https://searxng.dotya.ml*
|
|
|
|
// @exclude https://grafana.dotya.ml*
|
|
|
|
// @exclude https://github.com*
|
|
|
|
// @exclude https://dnswatch.com*
|
|
|
|
// @exclude https://docs.immudb.io*
|
|
|
|
// @exclude https://woodpecker-ci.org*
|
|
|
|
// @exclude https://duckduckgo.com*
|
|
|
|
// @exclude https://www.redit.com*
|
|
|
|
// @exclude https://codeberg.org*
|
|
|
|
// @include http*
|
|
|
|
// @require https://cdn.jsdelivr.net/npm/darkreader/darkreader.min.js
|
|
|
|
// @noframes
|
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
DarkReader.enable({
|
|
|
|
brightness: 105,
|
|
|
|
contrast: 105,
|
|
|
|
sepia: 0
|
|
|
|
});
|
|
|
|
DarkReader.disable();
|
|
|
|
'';
|
|
|
|
};
|
2022-09-02 18:01:13 +02:00
|
|
|
};
|
2022-12-03 20:59:14 +01:00
|
|
|
|
2023-10-03 17:11:36 +02:00
|
|
|
xdg = (import ./nix/xdg.nix) {inherit pkgs config hostName;};
|
2022-08-29 00:30:29 +02:00
|
|
|
}
|