Compare commits
5 Commits
work
...
5b00400cc1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b00400cc1 | ||
|
|
9c98f7490f | ||
|
|
f6a6fb2afe | ||
|
|
fccac91c05 | ||
|
|
8f31717cb5 |
12
flake.lock
generated
12
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773264488,
|
"lastModified": 1767910483,
|
||||||
"narHash": "sha256-rK0507bDuWBrZo+0zts9bCs/+RRUEHuvFE5DHWPxX/Q=",
|
"narHash": "sha256-MOU5YdVu4DVwuT5ztXgQpPuRRBjSjUGIdUzOQr9iQOY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "5c0f63f8d55040a7eed69df7e3fcdd15dfb5a04c",
|
"rev": "82fb7dedaad83e5e279127a38ef410bcfac6d77c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -23,11 +23,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773068389,
|
"lastModified": 1767799921,
|
||||||
"narHash": "sha256-vMrm7Pk2hjBRPnCSjhq1pH0bg350Z+pXhqZ9ICiqqCs=",
|
"narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "44bae273f9f82d480273bab26f5c50de3724f52f",
|
"rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
7
home.nix
7
home.nix
@@ -9,19 +9,14 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./other/fonts.nix
|
./other/fonts.nix
|
||||||
|
./programs/obs-studio.nix
|
||||||
./programs/bitwarden.nix
|
./programs/bitwarden.nix
|
||||||
./programs/kitty.nix
|
./programs/kitty.nix
|
||||||
./programs/zsh.nix
|
./programs/zsh.nix
|
||||||
./programs/direnv.nix
|
./programs/direnv.nix
|
||||||
./programs/firefox.nix
|
./programs/firefox.nix
|
||||||
./programs/tmux.nix
|
./programs/tmux.nix
|
||||||
./programs/git.nix
|
|
||||||
./programs/libreoffice.nix
|
|
||||||
./programs/vscode.nix
|
./programs/vscode.nix
|
||||||
./programs/nvim.nix
|
|
||||||
./programs/azuredatastudio.nix
|
|
||||||
./programs/filezilla.nix
|
|
||||||
./programs/ripgrep.nix
|
|
||||||
./wm/rofi.nix
|
./wm/rofi.nix
|
||||||
./wm/cursor.nix
|
./wm/cursor.nix
|
||||||
./wm/dconf.nix
|
./wm/dconf.nix
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = [
|
|
||||||
pkgs.azuredatastudio
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/direnv/direnvrc" = {
|
home.sessionVariables = {
|
||||||
source = ./direnv/direnvrc;
|
DIRENV_CACHE = "${config.home.homeDirectory}/.cache/direnv";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
# Place in ~/.config/direnv/direnvrc
|
|
||||||
|
|
||||||
# Two things to know:
|
|
||||||
# * `direnv_layour_dir` is called once for every {.direnvrc,.envrc} sourced
|
|
||||||
# * The indicator for a different direnv file being sourced is a different $PWD value
|
|
||||||
# This means we can hash $PWD to get a fully unique cache path for any given environment
|
|
||||||
|
|
||||||
: ${XDG_CACHE_HOME:=$HOME/.cache}
|
|
||||||
declare -A direnv_layout_dirs
|
|
||||||
direnv_layout_dir() {
|
|
||||||
echo "${direnv_layout_dirs[$PWD]:=$(
|
|
||||||
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
|
|
||||||
echo -n "$PWD" | sha1sum | cut -d ' ' -f 1
|
|
||||||
)}"
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json",
|
|
||||||
"modules": [
|
|
||||||
"os",
|
|
||||||
"uptime",
|
|
||||||
"cpu",
|
|
||||||
"gpu",
|
|
||||||
"memory",
|
|
||||||
"swap",
|
|
||||||
"disk",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
filezilla
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -4,12 +4,6 @@
|
|||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
profiles.default = {
|
|
||||||
settings = {
|
|
||||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
policies = {
|
policies = {
|
||||||
# From https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
|
# From https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
|
||||||
ExtensionSettings = with builtins;
|
ExtensionSettings = with builtins;
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... } :
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
settings.user = {
|
|
||||||
name = "Armel van Ravels";
|
|
||||||
email = "armel@webavance.nl";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
libreoffice
|
|
||||||
|
|
||||||
hunspell
|
|
||||||
hunspellDicts.en_US
|
|
||||||
hunspellDicts.nl_NL
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,158 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
extraLuaPackages = ps: [ ps.magick ];
|
|
||||||
extraPackages = [
|
|
||||||
pkgs.ueberzugpp
|
|
||||||
pkgs.imagemagick
|
|
||||||
];
|
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
neo-tree-nvim
|
|
||||||
catppuccin-nvim
|
|
||||||
tokyonight-nvim
|
|
||||||
nvim-lspconfig
|
|
||||||
nvim-cmp
|
|
||||||
cmp-nvim-lsp
|
|
||||||
cmp-buffer
|
|
||||||
cmp-path
|
|
||||||
plenary-nvim
|
|
||||||
telescope-nvim
|
|
||||||
(nvim-treesitter.withAllGrammars)
|
|
||||||
vim-nix
|
|
||||||
lualine-nvim
|
|
||||||
image-nvim
|
|
||||||
];
|
|
||||||
|
|
||||||
extraLuaConfig = ''
|
|
||||||
vim.cmd("colorscheme catppuccin-mocha")
|
|
||||||
-- Basic settings
|
|
||||||
vim.o.number = true
|
|
||||||
vim.o.relativenumber = true
|
|
||||||
|
|
||||||
-- =========================
|
|
||||||
-- LSP (Neovim 0.11+ way)
|
|
||||||
-- =========================
|
|
||||||
|
|
||||||
-- Add cmp capabilities
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
|
||||||
|
|
||||||
vim.lsp.config("nil_ls", {
|
|
||||||
capabilities = capabilities,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- PHP LSP
|
|
||||||
vim.lsp.config("intelephense", {
|
|
||||||
capabilities = capabilities,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.lsp.enable("intelephense")
|
|
||||||
|
|
||||||
|
|
||||||
vim.lsp.enable("nil_ls")
|
|
||||||
|
|
||||||
-- =========================
|
|
||||||
-- nvim-cmp
|
|
||||||
-- =========================
|
|
||||||
|
|
||||||
local cmp = require("cmp")
|
|
||||||
|
|
||||||
cmp.setup({
|
|
||||||
mapping = cmp.mapping.preset.insert({
|
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
|
||||||
}),
|
|
||||||
sources = {
|
|
||||||
{ name = "nvim_lsp" },
|
|
||||||
{ name = "buffer" },
|
|
||||||
{ name = "path" },
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- =========================
|
|
||||||
-- Telescope
|
|
||||||
-- =========================
|
|
||||||
|
|
||||||
local builtin = require("telescope.builtin")
|
|
||||||
vim.keymap.set("n", "<leader>ff", builtin.find_files, {})
|
|
||||||
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
|
|
||||||
|
|
||||||
-- =========================
|
|
||||||
-- Lualine (status line with Git branch)
|
|
||||||
-- =========================
|
|
||||||
require('lualine').setup {
|
|
||||||
options = {
|
|
||||||
theme = 'catppuccin', -- match your colorscheme
|
|
||||||
section_separators = {'', ''},
|
|
||||||
component_separators = {'', ''},
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
lualine_a = {'mode'},
|
|
||||||
lualine_b = {'branch'}, -- shows Git branch here
|
|
||||||
lualine_c = {'filename'},
|
|
||||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
|
||||||
lualine_y = {'progress'},
|
|
||||||
lualine_z = {'location'}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- =========================
|
|
||||||
-- image-nvim
|
|
||||||
-- =========================
|
|
||||||
require("image").setup({
|
|
||||||
backend = "ueberzug", -- or "ueberzug" or "sixel"
|
|
||||||
processor = "magick_cli", -- or "magick_rock"
|
|
||||||
integrations = {
|
|
||||||
markdown = {
|
|
||||||
enabled = true,
|
|
||||||
clear_in_insert_mode = false,
|
|
||||||
download_remote_images = true,
|
|
||||||
only_render_image_at_cursor = false,
|
|
||||||
only_render_image_at_cursor_mode = "popup", -- or "inline"
|
|
||||||
floating_windows = false, -- if true, images will be rendered in floating markdown windows
|
|
||||||
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
|
|
||||||
},
|
|
||||||
asciidoc = {
|
|
||||||
enabled = true,
|
|
||||||
clear_in_insert_mode = false,
|
|
||||||
download_remote_images = true,
|
|
||||||
only_render_image_at_cursor = false,
|
|
||||||
only_render_image_at_cursor_mode = "popup",
|
|
||||||
floating_windows = false,
|
|
||||||
filetypes = { "asciidoc", "adoc" },
|
|
||||||
},
|
|
||||||
neorg = {
|
|
||||||
enabled = true,
|
|
||||||
filetypes = { "norg" },
|
|
||||||
},
|
|
||||||
rst = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
typst = {
|
|
||||||
enabled = true,
|
|
||||||
filetypes = { "typst" },
|
|
||||||
},
|
|
||||||
html = {
|
|
||||||
enabled = false,
|
|
||||||
},
|
|
||||||
css = {
|
|
||||||
enabled = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
max_width = nil,
|
|
||||||
max_height = nil,
|
|
||||||
max_width_window_percentage = nil,
|
|
||||||
max_height_window_percentage = 50,
|
|
||||||
scale_factor = 1.0,
|
|
||||||
window_overlap_clear_enabled = false, -- toggles images when windows are overlapped
|
|
||||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "snacks_notif", "scrollview", "scrollview_sign" },
|
|
||||||
editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
|
|
||||||
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
|
|
||||||
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.avif" }, -- render image files as images when opened
|
|
||||||
})
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
5
programs/obs-studio.nix
Normal file
5
programs/obs-studio.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.obs-studio.enable = true;
|
||||||
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
ripgrep
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file.".zsh/fastfetch.jsonc".source =
|
|
||||||
./fastfetch/config.jsonc;
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
@@ -11,7 +8,7 @@
|
|||||||
theme = "agnoster";
|
theme = "agnoster";
|
||||||
};
|
};
|
||||||
|
|
||||||
initContent = ''
|
initExtra = ''
|
||||||
# Use kitty's ssh helper if running inside kitty
|
# Use kitty's ssh helper if running inside kitty
|
||||||
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
bzmenu
|
bzmenu
|
||||||
hyprshot
|
hyprshot
|
||||||
hyprlock
|
hyprlock
|
||||||
playerctl
|
|
||||||
speedcrunch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
@@ -23,7 +21,6 @@
|
|||||||
"$terminal" = "kitty";
|
"$terminal" = "kitty";
|
||||||
"$menu" = "rofi -show drun";
|
"$menu" = "rofi -show drun";
|
||||||
"$bluetoothMenu" = "bzmenu --launcher rofi";
|
"$bluetoothMenu" = "bzmenu --launcher rofi";
|
||||||
"$files" = "rofi -show filebrowser";
|
|
||||||
|
|
||||||
### BASIC LAYOUT
|
### BASIC LAYOUT
|
||||||
general = {
|
general = {
|
||||||
@@ -78,15 +75,11 @@
|
|||||||
"$mod, RETURN, exec, $terminal"
|
"$mod, RETURN, exec, $terminal"
|
||||||
"$mod, D, exec, $menu"
|
"$mod, D, exec, $menu"
|
||||||
"$mod, B, exec, $bluetoothMenu"
|
"$mod, B, exec, $bluetoothMenu"
|
||||||
"$mod, G, exec, $files"
|
|
||||||
"$mod, Q, killactive"
|
"$mod, Q, killactive"
|
||||||
"$mod, F, fullscreen"
|
"$mod, F, fullscreen"
|
||||||
"$mod, M, exit"
|
"$mod, M, exit"
|
||||||
"$mod, L, exec, hyprlock"
|
"$mod, L, exec, hyprlock"
|
||||||
|
|
||||||
# show/hide waybar
|
|
||||||
"$mod, W, exec, pkill -SIGUSR1 -f '^waybar$'"
|
|
||||||
|
|
||||||
# Focus
|
# Focus
|
||||||
"$mod, LEFT, movefocus, l"
|
"$mod, LEFT, movefocus, l"
|
||||||
"$mod, RIGHT, movefocus, r"
|
"$mod, RIGHT, movefocus, r"
|
||||||
@@ -122,16 +115,6 @@
|
|||||||
|
|
||||||
# Hyprshot
|
# Hyprshot
|
||||||
"$mod, Z, exec, hyprshot -m region"
|
"$mod, Z, exec, hyprshot -m region"
|
||||||
|
|
||||||
# Media keys
|
|
||||||
", XF86AudioPlay, exec, playerctl play-pause"
|
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
", XF86AudioNext, exec, playerctl next"
|
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
|
||||||
|
|
||||||
", XF86Calculator, exec, speedcrunch"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = [
|
|
||||||
pkgs.rofi-file-browser
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "material";
|
theme = "material";
|
||||||
|
|||||||
@@ -21,27 +21,12 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"pulseaudio"
|
|
||||||
"cpu"
|
|
||||||
"tray"
|
"tray"
|
||||||
|
"cpu"
|
||||||
"battery"
|
"battery"
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
|
||||||
pulseaudio = {
|
|
||||||
format = "{icon} {volume}%";
|
|
||||||
format-muted = " muted";
|
|
||||||
tooltip = false;
|
|
||||||
|
|
||||||
scroll-step = 5;
|
|
||||||
|
|
||||||
format-icons = {
|
|
||||||
default = [ "" "" "" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
|
||||||
};
|
|
||||||
|
|
||||||
mpris = {
|
mpris = {
|
||||||
player = "spotify";
|
player = "spotify";
|
||||||
format = "{player_icon} {artist} - {title}";
|
format = "{player_icon} {artist} - {title}";
|
||||||
|
|||||||
Reference in New Issue
Block a user