Changed dot-config to .config
This commit is contained in:
parent
9ea93f8144
commit
0ab0f24015
118 changed files with 29 additions and 980 deletions
19
misc/.config/nixos/profiles/emacs.nix
Normal file
19
misc/.config/nixos/profiles/emacs.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
emacs29-pgtk # Transparency on Wayland requires Pure GTK
|
||||
|
||||
# Misc
|
||||
ispell # Spellchecker
|
||||
fd # Find entries in filesystem. Helps doom emacs run faster.
|
||||
|
||||
# For vterm
|
||||
cmake
|
||||
libtool
|
||||
|
||||
## LSPs
|
||||
nodePackages.pyright
|
||||
];
|
||||
}
|
||||
|
||||
22
misc/.config/nixos/profiles/fcitx.nix
Normal file
22
misc/.config/nixos/profiles/fcitx.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
i18n = {
|
||||
inputMethod = {
|
||||
# Have to install fcitx5 through here so that the binary is patched to be able to see the addons.
|
||||
# If also installed through system packages, the binary without addonds will take precedence.
|
||||
enabled = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-configtool
|
||||
fcitx5-rime
|
||||
fcitx5-chinese-addons
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
source-han-sans
|
||||
source-han-serif
|
||||
];
|
||||
}
|
||||
|
||||
27
misc/.config/nixos/profiles/lf.nix
Normal file
27
misc/.config/nixos/profiles/lf.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
lf
|
||||
|
||||
atool # Provides aunpack, to open archives. Also can list archive contents.
|
||||
bat # A prettified 'cat'
|
||||
broot # A slicker fzf
|
||||
chafa # Display images in the terminal (supports sixel)
|
||||
ffmpegthumbnailer # Get thumbnails of videos
|
||||
file # Get information about a specific file
|
||||
fzf # Fuzzy finder. Might fully replace with broot
|
||||
imagemagick # Image conversion/processing tool
|
||||
mediainfo # Get info about media
|
||||
mpv # Audio and video player
|
||||
nsxiv # Image viewer
|
||||
odt2txt # Convert open documents to text
|
||||
perl536Packages.FileMimeInfo # Provides mimeopen, to ask what program to open files in
|
||||
poppler_utils # Provides pdftoppm, to turn pdfs into images
|
||||
unrar-wrapper # Extract .rar files
|
||||
xclip # Copy file name to clip
|
||||
xdragon # Drag and drop utility
|
||||
zathura # PDF viewer
|
||||
];
|
||||
}
|
||||
|
||||
7
misc/.config/nixos/profiles/minimal.nix
Normal file
7
misc/.config/nixos/profiles/minimal.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
}
|
||||
|
||||
17
misc/.config/nixos/profiles/nvim.nix
Normal file
17
misc/.config/nixos/profiles/nvim.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
|
||||
# LSPs
|
||||
clang-tools
|
||||
lua-language-server
|
||||
|
||||
# Misc
|
||||
ripgrep # Used by telescope
|
||||
gcc
|
||||
unzip
|
||||
];
|
||||
}
|
||||
|
||||
11
misc/.config/nixos/profiles/virtualbox.nix
Normal file
11
misc/.config/nixos/profiles/virtualbox.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
# Implicitly downloads virtualbox
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
|
||||
}
|
||||
|
||||
69
misc/.config/nixos/profiles/wm/dwm.nix
Normal file
69
misc/.config/nixos/profiles/wm/dwm.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
security.sudo.extraConfig = ''
|
||||
%wheel ALL=(ALL:ALL) NOPASSWD: ${pkgs.systemd}/bin/systemctl restart autorandr
|
||||
'';
|
||||
|
||||
# X Server
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
autorun = false;
|
||||
|
||||
autoRepeatDelay = 300;
|
||||
autoRepeatInterval = 50;
|
||||
|
||||
# Configure keymap in X11
|
||||
layout = "us";
|
||||
xkbOptions = "eurosign:e,caps:escape";
|
||||
|
||||
# Touchpad stuff
|
||||
libinput = {
|
||||
enable = true;
|
||||
touchpad.naturalScrolling = true;
|
||||
};
|
||||
|
||||
displayManager = {
|
||||
lightdm.enable = false;
|
||||
startx.enable = true;
|
||||
};
|
||||
|
||||
windowManager.dwm.enable = true;
|
||||
};
|
||||
|
||||
# Monitor switching service. Allow users to restart the service without password
|
||||
services.autorandr.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
arandr # Visually move relative positions of monitors
|
||||
autorandr # Save and load xrandr profiles
|
||||
blueman # Bluetooth manager
|
||||
dunst # Notification daemon
|
||||
dwmblocks # Suckless statusbar for DWM
|
||||
dwm # Suckless tiling window manager
|
||||
feh # Image viewer I use for background setting
|
||||
firefox # My browser of choice
|
||||
libnotify # Send messages to notification daemon
|
||||
libreoffice # MSOffice btfo
|
||||
maim # Screenshot utility
|
||||
picom # X Compositor
|
||||
pinentry-rofi # Rofi frontend for pinentry program
|
||||
rofi # Menu prompt program
|
||||
rofi-pass # Rofi frontend for password store
|
||||
st # Suckless terminal
|
||||
sxhkd # Hotkey daemon
|
||||
texlive.combined.scheme-full # LaTeX to create documents
|
||||
typst # Cool, minimal LaTeX alternative
|
||||
ungoogled-chromium # If I need a special chrome feature
|
||||
xsecurelock # Session locker
|
||||
|
||||
# GTK Themes
|
||||
lxappearance-gtk2 # Theme switcher
|
||||
gruvbox-dark-gtk
|
||||
|
||||
# X tools
|
||||
xorg.xauth
|
||||
xclip
|
||||
];
|
||||
}
|
||||
|
||||
84
misc/.config/nixos/profiles/wm/hyprland.nix
Normal file
84
misc/.config/nixos/profiles/wm/hyprland.nix
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Or else swaylock will not accept correct password
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
programs = {
|
||||
hyprland = { # Dynamic tiling window manager
|
||||
enable = true;
|
||||
enableNvidiaPatches = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
waybar.enable = true; # Status bar
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
hyprland-autoname-workspaces = {
|
||||
description = "Hyprland-autoname-workspaces as systemd service";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
script = "${pkgs.hyprland-autoname-workspaces}/bin/hyprland-autoname-workspaces";
|
||||
};
|
||||
network-manager-applet = {
|
||||
description = "Start the network manager applet";
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig.Type = "forking";
|
||||
serviceConfig.Restart = "always";
|
||||
serviceConfig.RestartSec = 2;
|
||||
serviceConfig.ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
blueman # Bluetooth manager
|
||||
dunst # Notification daemon
|
||||
eww-wayland
|
||||
firefox # My browser of choice
|
||||
foot # Wayland native terminal
|
||||
gobble # Wayland alternative to devour
|
||||
grim # Screenshot tool
|
||||
grimblast # Allows freezing screen
|
||||
hicolor-icon-theme # Icons
|
||||
hyprland-autoname-workspaces
|
||||
hyprpaper
|
||||
kanshi # Autorandr substitute
|
||||
libnotify # Send messages to notification daemon
|
||||
libreoffice # MSOffice btfo
|
||||
networkmanagerapplet # Wifi dropdown menu
|
||||
pinentry-rofi # Rofi frontend for pinentry program
|
||||
pyprland # Plugin manager for Hyprland
|
||||
rofi # Menu prompt program
|
||||
rofi-pass # Rofi frontend for password store
|
||||
slurp # Screen selection utility
|
||||
swaylock # Wayland session locker
|
||||
swww # Sets background images
|
||||
texlive.combined.scheme-full # LaTeX to create documents
|
||||
typst # Cool, minimal LaTeX alternative
|
||||
ungoogled-chromium # If I need a special chrome feature
|
||||
wayland-utils
|
||||
wdisplays # Arnadr substitute
|
||||
wl-clipboard # Copy/paste utility
|
||||
wlr-randr # Xrandr substitute
|
||||
|
||||
# GTK Themes
|
||||
lxappearance-gtk2 # Theme switcher
|
||||
gruvbox-dark-gtk
|
||||
|
||||
# Specific versions of packages
|
||||
(import (builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/9957cd48326fe8dbd52fdc50dd2502307f188b0d.tar.gz";
|
||||
}) {}).hyprpicker # v0.1.1. Current verison causes segfault.
|
||||
];
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
grimblast = super.grimblast.override (oa: {
|
||||
hyprpicker = (import (builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/9957cd48326fe8dbd52fdc50dd2502307f188b0d.tar.gz";
|
||||
}) {}).hyprpicker; # v0.1.1. Current verison causes segfault.
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue