dotfiles/home-surtur.nix

331 lines
7.8 KiB
Nix
Raw Normal View History

{
2023-07-10 05:09:43 +02:00
config,
lib,
pkgs,
homeage,
...
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";
home.stateVersion = "23.11";
2022-09-06 17:51:26 +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;
home.packages = with pkgs; [
2023-10-03 17:14:11 +02:00
# TODO: configure with HM:
# zellij, btop, thunderbird, fusuma, swayosd
2023-08-03 11:46:14 +02:00
direnv
# lorri and arion are apparently provided by cachix#devenv
alejandra
statix
2023-08-03 11:46:14 +02:00
niv
rnix-lsp
2023-10-03 17:13:26 +02:00
nixos-rebuild
eza
ripgrep
starship
sheldon
duf
dua
du-dust
2023-09-05 16:59:24 +02:00
himalaya
b3sum
cargo-watch
zellij
cloak
headscale
btop
sops
neovim
nautilus-open-any-terminal
dhall
2023-08-03 11:46:14 +02:00
ccache
zathura
autotiling
bemenu
swayr
kanshi
waybar
albert
];
imports = [
./nix/homeage.nix
2023-08-05 16:07:27 +02:00
./nix/programs.nix
./nix/qutebrowser-userscripts.nix
./nix/scripts.nix
./nix/systemd.nix
./nix/zsh.nix
2022-09-02 23:42:00 +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"];
};
};
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
".config/nvim/init.vim" = {
source = ./.config/nvim/init.vim;
};
".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;
};
".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;
};
".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;
};
".cargo/config.toml" = {
source = .cargo/config.toml;
};
".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
".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;
};
".config/qutebrowser/config.py" = {
source = .config/qutebrowser/config.py;
};
".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
xdg = (import ./nix/xdg.nix) {inherit pkgs config hostName;};
2022-08-29 00:30:29 +02:00
}