Compare commits
2 commits
45e266023b
...
1bf2737d9a
Author | SHA1 | Date | |
---|---|---|---|
vanten-s | 1bf2737d9a | ||
vanten-s | ac6dc18ccd |
|
@ -38,9 +38,12 @@ in {
|
||||||
services.printing.drivers = with pkgs; [
|
services.printing.drivers = with pkgs; [
|
||||||
epson-escpr2
|
epson-escpr2
|
||||||
epson-escpr
|
epson-escpr
|
||||||
|
dcp9020cdwlpr
|
||||||
ghostscript
|
ghostscript
|
||||||
cups-filters
|
cups-filters
|
||||||
];
|
];
|
||||||
|
services.mullvad-vpn.enable = true;
|
||||||
|
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||||
|
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
|
@ -62,6 +65,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
services.xserver.enable = true;
|
||||||
|
# You may need to comment out "services.displayManager.gdm.enable = true;"
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "sv-latin1";
|
console.keyMap = "sv-latin1";
|
||||||
|
@ -70,7 +77,7 @@ in {
|
||||||
users.users.svante = {
|
users.users.svante = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Svante";
|
description = "Svante";
|
||||||
extraGroups = [ "networkmanager" "wheel" "audio" "dialout" ];
|
extraGroups = [ "networkmanager" "wheel" "audio" "dialout" "wireshark" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
};
|
};
|
||||||
|
@ -86,6 +93,13 @@ in {
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "svante";
|
||||||
|
dataDir = "/home/svante/Documents"; # Default folder for new synced folders
|
||||||
|
configDir = "/home/svante/Documents/.config/syncthing"; # Folder for Syncthing's settings and keys
|
||||||
|
};
|
||||||
|
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
# virtualisation.docker.rootless = {
|
# virtualisation.docker.rootless = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
@ -110,12 +124,14 @@ in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
neovim
|
neovim
|
||||||
|
libsForQt5.lightly
|
||||||
curl
|
curl
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
mlocate
|
mlocate
|
||||||
glib
|
glib
|
||||||
links2
|
links2
|
||||||
dolphin
|
dolphin
|
||||||
|
wireshark
|
||||||
pkg-config
|
pkg-config
|
||||||
gnome.nautilus
|
gnome.nautilus
|
||||||
kitty
|
kitty
|
||||||
|
@ -133,6 +149,7 @@ in {
|
||||||
wtype
|
wtype
|
||||||
cifs-utils
|
cifs-utils
|
||||||
waybar
|
waybar
|
||||||
|
ffmpeg
|
||||||
pulsemixer
|
pulsemixer
|
||||||
waypaper
|
waypaper
|
||||||
swaybg
|
swaybg
|
||||||
|
@ -297,9 +314,10 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPortRanges = [
|
||||||
{ from = 1714; to = 1764; } # KDE Connect
|
{ from = 1714; to = 1764; } # KDE Connect
|
||||||
|
{ from = 22000; to = 22000; } # KDE Connect
|
||||||
];
|
];
|
||||||
allowedUDPPortRanges = [
|
allowedUDPPortRanges = [
|
||||||
{ from = 1714; to = 1764; } # KDE Connect
|
{ from = 22000; to = 22000; } # KDE Connect
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -78,11 +78,6 @@ dwindle {
|
||||||
preserve_split = yes # you probably want this
|
preserve_split = yes # you probably want this
|
||||||
}
|
}
|
||||||
|
|
||||||
master {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_is_master = true
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
workspace_swipe = off
|
workspace_swipe = off
|
||||||
|
|
|
@ -68,3 +68,11 @@ require('lspconfig').cssls.setup { capabilities = capabilities }
|
||||||
require('lspconfig').eslint.setup { capabilities = capabilities }
|
require('lspconfig').eslint.setup { capabilities = capabilities }
|
||||||
require('lspconfig').bashls.setup { capabilities = capabilities }
|
require('lspconfig').bashls.setup { capabilities = capabilities }
|
||||||
require('lspconfig').pyright.setup { capabilities = capabilities }
|
require('lspconfig').pyright.setup { capabilities = capabilities }
|
||||||
|
require('lspconfig').ccls.setup {
|
||||||
|
capabilities = capabilities,
|
||||||
|
init_options = {
|
||||||
|
index = {
|
||||||
|
blacklist = {"opt"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | ~/.local/bin/dmenu -i)"
|
folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | fuzzel -d)"
|
||||||
|
|
||||||
if [ -z $folder ];
|
if [ -z $folder ];
|
||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | ~/.local/bin/dmenu -i)"
|
choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | fuzzel -d)"
|
||||||
|
|
||||||
if [ -z $choice ];
|
if [ -z $choice ];
|
||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xdotool type "$(pass otp $folder/$choice)"
|
wtype -d 10 "$(pass otp "$folder/$choice")"
|
||||||
|
|
|
@ -15,7 +15,7 @@ compinit
|
||||||
export TERM="xterm"
|
export TERM="xterm"
|
||||||
|
|
||||||
# Shorthands
|
# Shorthands
|
||||||
alias ls='ls --color=yes'
|
alias ls='ls --color=yes -h'
|
||||||
alias l='ls -l'
|
alias l='ls -l'
|
||||||
alias la='ls -a'
|
alias la='ls -a'
|
||||||
alias ll='ls -la'
|
alias ll='ls -la'
|
||||||
|
|
93
home.nix
93
home.nix
|
@ -5,44 +5,65 @@
|
||||||
home.homeDirectory = "/home/svante";
|
home.homeDirectory = "/home/svante";
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
home.packages = [
|
home.packages = with pkgs; [
|
||||||
pkgs.fortune
|
fortune
|
||||||
pkgs.mako
|
mako
|
||||||
pkgs.htop
|
kdePackages.kalgebra
|
||||||
pkgs.xwaylandvideobridge
|
libreoffice
|
||||||
pkgs.pipewire
|
htop
|
||||||
pkgs.wireplumber
|
ripgrep
|
||||||
pkgs.xdg-desktop-portal-hyprland
|
xwaylandvideobridge
|
||||||
pkgs.qt6.qtwayland
|
qtpass
|
||||||
pkgs.libsForQt5.qt5.qtwayland
|
pipewire
|
||||||
pkgs.obs-studio
|
jdk21
|
||||||
pkgs.prismlauncher
|
wireplumber
|
||||||
pkgs.prusa-slicer
|
xdg-desktop-portal-hyprland
|
||||||
pkgs.gphoto2
|
qt6.qtwayland
|
||||||
pkgs.freecad
|
libsForQt5.qt5.qtwayland
|
||||||
pkgs.direnv
|
ccls
|
||||||
pkgs.easyeffects
|
clang
|
||||||
pkgs.tmux
|
obs-studio
|
||||||
pkgs.kicad
|
prismlauncher
|
||||||
pkgs.spotify
|
prusa-slicer
|
||||||
pkgs.arduino-ide
|
gphoto2
|
||||||
pkgs.blender
|
freecad
|
||||||
pkgs.gimp
|
direnv
|
||||||
pkgs.davinci-resolve
|
easyeffects
|
||||||
pkgs.feh
|
tmux
|
||||||
pkgs.unityhub
|
kicad
|
||||||
pkgs.distrobox
|
spotify
|
||||||
pkgs.godot_4
|
arduino-ide
|
||||||
pkgs.dig
|
blender
|
||||||
pkgs.socat
|
gimp
|
||||||
pkgs.android-studio
|
davinci-resolve
|
||||||
pkgs.android-tools
|
feh
|
||||||
pkgs.steam
|
unityhub
|
||||||
pkgs.sidequest
|
distrobox
|
||||||
pkgs.openjdk17
|
godot_4
|
||||||
pkgs.libei
|
dig
|
||||||
|
socat
|
||||||
|
android-studio
|
||||||
|
android-tools
|
||||||
|
steam
|
||||||
|
sidequest
|
||||||
|
libei
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.ncspot = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
notify = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.mako = {
|
||||||
|
enable = true;
|
||||||
|
backgroundColor = "#1e1e2ee0";
|
||||||
|
borderRadius = 10;
|
||||||
|
icons = false;
|
||||||
|
defaultTimeout = 3000;
|
||||||
|
};
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/fuzzel".source = dotfiles/fuzzel;
|
".config/fuzzel".source = dotfiles/fuzzel;
|
||||||
".config/hypr".source = dotfiles/hypr;
|
".config/hypr".source = dotfiles/hypr;
|
||||||
|
|
Loading…
Reference in a new issue