Compare commits

...

2 commits

Author SHA1 Message Date
vanten-s 1bf2737d9a
Added stuff 2024-07-22 10:12:45 +02:00
vanten-s ac6dc18ccd
Changes Changes 2024-07-11 08:43:48 +02:00
6 changed files with 90 additions and 48 deletions

View file

@ -38,9 +38,12 @@ in {
services.printing.drivers = with pkgs; [
epson-escpr2
epson-escpr
dcp9020cdwlpr
ghostscript
cups-filters
];
services.mullvad-vpn.enable = true;
services.mullvad-vpn.package = pkgs.mullvad-vpn;
# Set your time zone.
@ -62,6 +65,10 @@ in {
};
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
console.keyMap = "sv-latin1";
@ -70,7 +77,7 @@ in {
users.users.svante = {
isNormalUser = true;
description = "Svante";
extraGroups = [ "networkmanager" "wheel" "audio" "dialout" ];
extraGroups = [ "networkmanager" "wheel" "audio" "dialout" "wireshark" ];
shell = pkgs.zsh;
packages = with pkgs; [];
};
@ -86,6 +93,13 @@ in {
# Allow unfree packages
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.rootless = {
# enable = true;
@ -110,12 +124,14 @@ in {
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
neovim
libsForQt5.lightly
curl
gsettings-desktop-schemas
mlocate
glib
links2
dolphin
wireshark
pkg-config
gnome.nautilus
kitty
@ -133,6 +149,7 @@ in {
wtype
cifs-utils
waybar
ffmpeg
pulsemixer
waypaper
swaybg
@ -297,9 +314,10 @@ in {
enable = true;
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
{ from = 22000; to = 22000; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
{ from = 22000; to = 22000; } # KDE Connect
];
};

View file

@ -78,11 +78,6 @@ dwindle {
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off

View file

@ -68,3 +68,11 @@ require('lspconfig').cssls.setup { capabilities = capabilities }
require('lspconfig').eslint.setup { capabilities = capabilities }
require('lspconfig').bashls.setup { capabilities = capabilities }
require('lspconfig').pyright.setup { capabilities = capabilities }
require('lspconfig').ccls.setup {
capabilities = capabilities,
init_options = {
index = {
blacklist = {"opt"}
}
}
}

View file

@ -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 ];
then
exit
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 ];
then
exit
fi
xdotool type "$(pass otp $folder/$choice)"
wtype -d 10 "$(pass otp "$folder/$choice")"

View file

@ -15,7 +15,7 @@ compinit
export TERM="xterm"
# Shorthands
alias ls='ls --color=yes'
alias ls='ls --color=yes -h'
alias l='ls -l'
alias la='ls -a'
alias ll='ls -la'

View file

@ -5,44 +5,65 @@
home.homeDirectory = "/home/svante";
home.stateVersion = "23.11";
home.packages = [
pkgs.fortune
pkgs.mako
pkgs.htop
pkgs.xwaylandvideobridge
pkgs.pipewire
pkgs.wireplumber
pkgs.xdg-desktop-portal-hyprland
pkgs.qt6.qtwayland
pkgs.libsForQt5.qt5.qtwayland
pkgs.obs-studio
pkgs.prismlauncher
pkgs.prusa-slicer
pkgs.gphoto2
pkgs.freecad
pkgs.direnv
pkgs.easyeffects
pkgs.tmux
pkgs.kicad
pkgs.spotify
pkgs.arduino-ide
pkgs.blender
pkgs.gimp
pkgs.davinci-resolve
pkgs.feh
pkgs.unityhub
pkgs.distrobox
pkgs.godot_4
pkgs.dig
pkgs.socat
pkgs.android-studio
pkgs.android-tools
pkgs.steam
pkgs.sidequest
pkgs.openjdk17
pkgs.libei
home.packages = with pkgs; [
fortune
mako
kdePackages.kalgebra
libreoffice
htop
ripgrep
xwaylandvideobridge
qtpass
pipewire
jdk21
wireplumber
xdg-desktop-portal-hyprland
qt6.qtwayland
libsForQt5.qt5.qtwayland
ccls
clang
obs-studio
prismlauncher
prusa-slicer
gphoto2
freecad
direnv
easyeffects
tmux
kicad
spotify
arduino-ide
blender
gimp
davinci-resolve
feh
unityhub
distrobox
godot_4
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 = {
".config/fuzzel".source = dotfiles/fuzzel;
".config/hypr".source = dotfiles/hypr;