Change yt music to unstable, fix notifications and steam, fix restore script

This commit is contained in:
askiiart 2024-03-05 19:09:13 -06:00
parent fb90089380
commit 6b3cd2b413
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
3 changed files with 52 additions and 16 deletions

View file

@ -17,13 +17,6 @@ in
environment.systemPackages = [
pkgs.polkit_gnome
pkgs.sway
pkgs.swaybg
pkgs.swaylock
pkgs.i3status
pkgs.clipman
pkgs.slurp
pkgs.grim
pkgs.gnome.zenity
pkgs.imagemagick
pkgs.greetd.gtkgreet
pkgs.fish
@ -36,8 +29,33 @@ in
#pkgs.xdg-desktop-portal-gtk
pkgs.iotop
pkgs.gparted
pkgs.dbus
pkgs.xdg-utils
pkgs.spamassassin
];
# enable spamd
services.spamassassin.enable = true;
# xdg-desktop-portal works by exposing a series of D-Bus interfaces
# known as portals under a well-known name
# (org.freedesktop.portal.Desktop) and object path
# (/org/freedesktop/portal/desktop).
# The portal interfaces include APIs for file access, opening URIs,
# printing and others.
services.dbus.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
configPackages = [ pkgs.xdg-desktop-portal-gtk ];
};
# Enable the gnome-keyring secrets vault.
# Will be exposed through DBus to programs willing to store secrets.
services.gnome.gnome-keyring.enable = true;
# enable flatpak
# disabled because the XDG portal adds like a 30 second delay to opening most programs, and I don't actually use flatpaks so whatever
#services.flatpak.enable = true;
@ -46,8 +64,6 @@ in
#xdg.portal.config = [ "xdg-deskop-portal-gtk" ];
#xdg.portal.config.common.default = "*";
#programs.steam.enable = true;
# enable virt
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
@ -189,4 +205,6 @@ in
nixpkgs.config.pulseaudio = true;
hardware.pulseaudio.extraConfig = "load-module module-combine-sink module-dbus-protocol";
# fix Steam glXChooseVisual failed
hardware.opengl.driSupport32Bit = true;
}

View file

@ -1,5 +1,7 @@
{ pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{
home.packages = [
pkgs.librewolf
@ -15,7 +17,8 @@
pkgs.mate.eom
pkgs.neovim
pkgs.virt-manager
pkgs.youtube-music
unstable.youtube-music
pkgs.mako
#pkgs.gparted
#pkgs.cinnamon.nemo-with-extensions
pkgs.cinnamon.nemo
@ -57,7 +60,22 @@
pkgs.claws-mail
pkgs.gnome.gnome-calculator
pkgs.armcord
pkgs.wl-clipboard
pkgs.swaybg
pkgs.swaylock
pkgs.i3status
pkgs.clipman
pkgs.slurp
pkgs.grim
pkgs.gnome.zenity
pkgs.wdisplays
pkgs.glib
pkgs.wireguard-tools
pkgs.gcolor3
pkgs.gedit
pkgs.rustup
pkgs.gdbgui
pkgs.libreoffice-qt
pkgs.mosh
];
#programs.steam.enable = true;
}

View file

@ -3,6 +3,6 @@ SCRIPT_LOCATION=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
sudo cp -r $SCRIPT_LOCATION/etc-nixos/* /etc/nixos/
sudo rm -rf $HOME/.config/home-manager/
sudo mkdir -p $HOME/.config/home-manager/
sudo cp -r $SCRIPT_LOCATION/home-manager/* $HOME/.config/home-manager/
rm -rf $HOME/.config/home-manager/
mkdir -p $HOME/.config/home-manager/
cp -r $SCRIPT_LOCATION/home-manager/* $HOME/.config/home-manager/