remove old nb host, switch to sddm

This commit is contained in:
2024-07-05 02:45:55 +02:00
parent a20751002e
commit 5f11d8d5e5
40 changed files with 132 additions and 3267 deletions

View File

@@ -3,8 +3,6 @@
with lib;
let
cfg = config.cloonar.sway;
dbus-sway-environment = pkgs.writeTextFile {
name = "dbus-sway-environment";
destination = "/bin/dbus-sway-environment";
@@ -17,8 +15,8 @@ let
'';
};
sway-conf = builtins.readFile ./sway.conf + cfg.additionalConfig + ''
exec swaybg --mode center -c #252525 -i ~/.wallpaper.png
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; };
@@ -31,118 +29,134 @@ in {
./thunderbird.nix
];
options.cloonar.sway = {
additionalConfig = mkOption {
type = types.str;
default = "";
description = lib.mdDoc ''
Additional sway config
'';
};
hardware.sane.enable = true;
hardware.pulseaudio.enable = false;
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "dominik" ];
services.gnome.gnome-keyring.enable = true;
services.displayManager.defaultSession = "sway";
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "where_is_my_sddm_theme_qt5";
};
config = {
hardware.sane.enable = true;
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;
# };
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "dominik" ];
environment.systemPackages = with pkgs; [
alsaUtils
apache-directory-studio
bitwarden
bitwarden-cli
rofi-rbw-wayland
cryptomator
services.gnome.gnome-keyring.enable = true;
brave
chromium
firefox
vivaldi
environment.systemPackages = with pkgs; [
alsaUtils
apache-directory-studio
bitwarden
bitwarden-cli
rofi-rbw-wayland
cryptomator
unstable.cura
freecad
openscad
brave
chromium
firefox
vivaldi
(unstable.where-is-my-sddm-theme.override {
themeConfig.General = {
showUsersByDefault = true;
background = "/nix/persist/system/wallpaper.png";
backgroundFill = "#252525";
backgroundFillMode="Image.Pad";
};
variants = ["qt5"];
})
unstable.cura
freecad
openscad
dbus-sway-environment
ddev
dracula-theme
foot
gcc
git
glib
gimp
gnome.seahorse
gnome3.adwaita-icon-theme
go
grim
hunspell
hunspellDicts.de_DE
hunspellDicts.en_US
jmeter
libreoffice
mako
mqttui
networkmanagerapplet
nextcloud-client
onlyoffice-bin
pavucontrol
pcmanfm
pinentry
rbw
rofi-rbw
slurp
sway
swaybg
sway-launcher-desktop
swayidle
swaylock
thunderbird
unzip
vlc
waybar
wayland
wl-clipboard
wofi
wtype
yubikey-manager-qt
];
dbus-sway-environment
ddev
dracula-theme
foot
gcc
git
glib
gimp
gnome.seahorse
gnome3.adwaita-icon-theme
go
grim
hunspell
hunspellDicts.de_DE
hunspellDicts.en_US
jmeter
libreoffice
mako
mqttui
networkmanagerapplet
nextcloud-client
onlyoffice-bin
pavucontrol
pcmanfm
pinentry
rbw
rofi-rbw
slurp
sway
swaybg
sway-launcher-desktop
swayidle
swaylock
thunderbird
unzip
vlc
waybar
wayland
wl-clipboard
wofi
wtype
yubikey-manager-qt
programs.light.enable = true;
fonts.packages = 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;
extraOptions = [
"--unsupported-gpu"
];
};
programs.light.enable = true;
fonts.packages = 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;
extraOptions = [
"--unsupported-gpu"
];
};
environment.etc = {
"sway/config".text = sway-conf;
"wofi/style.css".text = builtins.readFile ./wofi.css;
"xdg/waybar/config".text = builtins.readFile ./waybar.conf;
"xdg/waybar/style.css".text = builtins.readFile ./waybar.css;
"xdg/foot/foot.ini".text = builtins.readFile ./foot.ini;
};
environment.etc = {
"sway/config".text = sway-conf;
"wofi/style.css".text = builtins.readFile ./wofi.css;
"xdg/waybar/config".text = builtins.readFile ./waybar.conf;
"xdg/waybar/style.css".text = builtins.readFile ./waybar.css;
"xdg/foot/foot.ini".text = builtins.readFile ./foot.ini;
};
}