copy nb configuration and modules

This commit is contained in:
2023-07-12 16:13:10 +02:00
parent 1af70a3095
commit 127eab91d5
114 changed files with 9070 additions and 0 deletions

137
utils/modules/sway/sway.nix Normal file
View File

@@ -0,0 +1,137 @@
{ config, pkgs, lib, ... }:
let
dbus-sway-environment = pkgs.writeTextFile {
name = "dbus-sway-environment";
destination = "/bin/dbus-sway-environment";
executable = true;
text = ''
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
'';
};
in {
imports = [
./social.nix
./signal-work.nix
./thunderbird.nix
./parsec.nix
];
hardware.pulseaudio.enable = false;
services.xserver = {
enable = true;
excludePackages = [ pkgs.xterm ];
displayManager.gdm.enable = true;
displayManager.gdm.wayland = true;
# displayManager.sddm.enable = true;
displayManager.sessionPackages = [ pkgs.sway ];
displayManager.defaultSession = "sway";
libinput.enable = true;
desktopManager.gnome = {
enable = true;
extraGSettingsOverrides = ''
[org.gnome.desktop.interface]
gtk-theme='Dracula'
'';
};
};
services.teamviewer.enable = true;
services.gnome.gnome-keyring.enable = true;
environment.systemPackages = with pkgs; [
alsaUtils
alacritty
bitwarden
chromium
cryptomator
dbeaver
dbus-sway-environment
dracula-theme
gcc
git
glib
gimp
gnome.seahorse
gnome3.adwaita-icon-theme
grim
jmeter
libreoffice
mako
networkmanagerapplet
nextcloud-client
obs-studio
pavucontrol
pcmanfm
pinentry
rbw
rofi-rbw
rustdesk
slurp
sway
sway-launcher-desktop
swayidle
swaylock
# thunderbird
tor-browser-bundle-bin
unzip
vlc
waybar
wayland
wl-clipboard
wofi
wtype
apache-directory-studio
firefox
onlyoffice-bin
# kexi
];
# nixpkgs.config.permittedInsecurePackages = [
# "qtwebkit-5.212.0-alpha4"
# "electron-13.6.9"
# ];
# nixpkgs.config.allowBroken = true;
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "dominik" ];
};
programs.light.enable = true;
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
nerdfonts
];
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;
};
environment.etc = {
"sway/config".source = "/etc/nixos/modules/sway/sway.conf";
"wofi/style.css".source = "/etc/nixos/modules/sway/wofi.css";
"xdg/waybar/config".source = "/etc/nixos/modules/sway/waybar.conf";
"xdg/waybar/style.css".source = "/etc/nixos/modules/sway/waybar.css";
};
}