refactor: notebook configration

This commit is contained in:
2025-06-02 01:04:43 +02:00
parent 0df4a4c1ec
commit d4438c8585
37 changed files with 212 additions and 418 deletions

View File

@@ -1,17 +0,0 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
bitwarden
bitwarden-cli
];
environment.shellAliases = {
bw-epicenter = "BITWARDENCLI_APPDATA_DIR=~/.config/bitwarden-cli-epicenter ${pkgs.bitwarden-cli}/bin/bw";
bw-cloonar = "BITWARDENCLI_APPDATA_DIR=~/.config/bitwarden-cli-cloonar ${pkgs.bitwarden-cli}/bin/bw";
};
environment.shellInit = ''
mkdir -p ~/.config/bitwarden-cli-epicenter ~/.config/bitwarden-cli-cloonar
'';
}

View File

@@ -1,17 +0,0 @@
{ pkgs, ... }:
let
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {
config = { allowUnfree = true; };
};
parsecDesktopItem = pkgs.makeDesktopItem {
name = "parsec";
desktopName = "Parsec Gaming";
exec = "parsecd";
};
in {
environment.systemPackages = with pkgs; [
unstable.parsec-bin
parsecDesktopItem
];
}

View File

@@ -1,19 +0,0 @@
{ pkgs, ... }:
let
rustDeskDesktopItem = pkgs.makeDesktopItem {
name = "rustdesk-xorg";
desktopName = "RustDesk Xorg";
icon = "rustdesk";
exec = "env -u WAYLAND_DISPLAY rustdesk";
genericName = "Remote Desktop";
categories = [ "Network" ];
mimeTypes = [ "x-scheme-handler/rustdesk" ];
};
in
{
environment.systemPackages = [
pkgs.rustdesk-flutter
# rustDeskDesktopItem
];
}

View File

@@ -1,26 +0,0 @@
{ pkgs, ... }:
let
signalWorkDesktopItem = pkgs.makeDesktopItem {
name = "signal-work";
desktopName = "Signal with work profile";
icon = "signal-desktop";
exec = "signal-desktop --enable-dev-tools --enable-features=VaapiVideoDecoder --user-data-dir=/home/dominik/.config/Signal-work -- %u";
};
in {
environment.systemPackages = [
pkgs.signal-cli
pkgs.signal-desktop
pkgs.zbar
signalWorkDesktopItem
];
}
# signal-cli is a command line interface for Signal
# use it like follows:
# signal-cli -u +4300000000 register
# signal-cli -u +4300000000 verify 123-456
# zbarimg /tmp/qr.png
# QR-Code:tsdevice:/?uuid...
# convert svg to png
# signal-cli -u +4300000000 addDevice --uri "tsdevice:/?uuid=xxx"

View File

@@ -1,14 +0,0 @@
{ pkgs, ... }:
let
socialDesktopItem = pkgs.makeDesktopItem {
name = "social";
desktopName = "Firefox browser with social profile";
exec = "firefox -P social";
# exec= "firefox -P social --marionette --remote-debugging-port 2828 --no-remote";
};
in {
environment.systemPackages = with pkgs; [
socialDesktopItem
];
}

View File

@@ -70,7 +70,7 @@ bindsym $mod+d exec foot -a launcher -e env TERMINAL_COMMAND="foot -c /etc/xdg/f
#bindsym $mod+d exec --no-startup-id bemenu --dmenu="dmenu -i -fn 'Source Sans Pro-10' -nb '#212121' -sb '#2b83a6' -sf '#ffffff'
# start an explorer
bindsym $mod+e exec --no-startup-id pcmanfm
bindsym $mod+e exec --no-startup-id thunar
# switching window with win+tab
bindsym $mod+Tab exec --no-startup-id wofi -show window

View File

@@ -22,172 +22,19 @@ let
sway-conf = builtins.readFile ./sway.conf + ''
exec swaybg -m center -c 252525 -i ~/.wallpaper.png
'';
# unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {
# config = { allowUnfree = true; };
# };
apache-ds-pin = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/9aec01027f7ea2bca07bb51d5ed83e78088871c1.tar.gz";
}) {};
in {
imports = [
./social.nix
./signal-work.nix
# ./parsec.nix
# ./rustdesk.nix
./thunderbird.nix
./bitwarden.nix
# ./vscode.nix
];
environment.variables.XCURSOR_SIZE = "24";
hardware.graphics.extraPackages = [ pkgs.amdvlk ];
environment.variables.VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json";
hardware.sane.enable = true;
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "dominik" ];
services.gnome.gnome-keyring.enable = true;
# services.xserver = {
# enable = true;
# displayManager.gdm.enable = true;
# desktopManager.gnome.enable = true;
# };
services.displayManager.defaultSession = "sway";
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "where_is_my_sddm_theme_qt5";
};
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
environment.systemPackages = with pkgs; [
alsa-utils
audacity
apache-ds-pin.apache-directory-studio
rofi-rbw-wayland
# TODO: remove at 25.05
cryptomator
fontforge
hypnotix
code-cursor
windsurf
codex
# vscode-insiders
# unstable.vscode-fhs
quickemu
firefox
# unstable.cura
freecad
openscad
(where-is-my-sddm-theme.override {
themeConfig.General = {
showUsersByDefault = true;
background = "/nix/persist/system/wallpaper.png";
backgroundFill = "#252525";
backgroundFillMode="Image.Pad";
passwordInputWidth = 0.25;
passwordInputBackground = "#60ffffff";
passwordFontSize = 28;
showSessionsByDefault = true;
sessionsFontSize=24;
usersFontSize=32;
};
variants = ["qt5"];
})
dbus-sway-environment
ddev
dracula-theme
foot
fractal
gcc
git
glib
gimp
seahorse
adwaita-icon-theme
go
grim
hunspell
hunspellDicts.de_DE
hunspellDicts.en_US
inkscape
jmeter
libreoffice
libsForQt5.qtgraphicaleffects
mako
mqttui
moonlight-qt
nautilus
netflix
networkmanagerapplet
nextcloud-client
nodejs_22
onlyoffice-bin
obs-studio
pavucontrol
pcmanfm
pinentry
rbw
rofi-rbw
# unstable.rustdesk
rustdesk-flutter
slurp
sway
rofi-rbw-wayland
swaybg
sway-launcher-desktop
swayidle
swaylock
thunderbird
unzip
vlc
waybar
wayland
wl-clipboard
wofi
wol
wtype
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
yubioath-flutter
];
programs.light.enable = true;
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
nerd-fonts._0xproto
nerd-fonts.droid-sans-mono
];
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;

View File

@@ -1,23 +0,0 @@
{ pkgs, ... }:
let
thunderbirdWorkDesktopItem = pkgs.makeDesktopItem {
name = "thunderbird-work";
desktopName = "Thunderbird Work";
icon = "thunderbird";
exec = "thunderbird -p work";
};
thunderbirdCloonarDesktopItem = pkgs.makeDesktopItem {
name = "thunderbird-cloonar";
desktopName = "Thunderbird Cloonar";
icon = "thunderbird";
exec = "thunderbird -p cloonar";
};
in
{
environment.systemPackages = [
pkgs.thunderbird
thunderbirdWorkDesktopItem
thunderbirdCloonarDesktopItem
];
}

View File

@@ -1,16 +0,0 @@
{ pkgs, ... }: let
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {
config = { allowUnfree = true; };
};
vscode-insiders = (unstable.vscode.override { isInsiders = true; }).overrideAttrs (oldAttrs: rec {
src = (builtins.fetchTarball {
url = "https://update.code.visualstudio.com/1.98.2-insider/linux-x64/insider";
sha256 = "sha256-tV0VxDLJJPD4jfNEgVh3wMXg899VJxCS5a3putdetkA=";
});
version = "1.98.0";
});
in {
environment.systemPackages = with pkgs; [
vscode-insiders
];
}