diff --git a/.config/sway/config b/.config/sway/config index 7395f81..65502ad 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -295,7 +295,7 @@ seat seat0 xcursor_theme Adwaita 10 include /etc/sway/config.d/* -#exec ~/.local/init/init.sh -i ~/.local/init/config-nixos +exec ~/.local/init/init.sh -i ~/.local/init/startup #do any computer specific setup here, monitor configs, etc. include ~/.init.sh diff --git a/.local/installers/nixos/configuration.nix b/.local/installers/nixos/configuration.nix index 9845646..5b074c0 100644 --- a/.local/installers/nixos/configuration.nix +++ b/.local/installers/nixos/configuration.nix @@ -22,12 +22,16 @@ #enable nonfree packages nixpkgs.config.allowUnfree = true; - nix.extraOptions = "–extra-experimental-features nix-command" -; + #enable automatic updates + system.autoUpgrade.enable = true; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + #enable flatpak + services.flatpak.enable = true; + networking.hostName = "gabriel"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. @@ -74,8 +78,17 @@ }; # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; + networking.firewall.allowedTCPPorts = [ 67 68 53 ]; + networking.firewall.allowedTCPPortRanges = [ + { from = 56881; to = 56889; } + { from = 27036; to = 27037; } +]; + # networking.firewall.allowedUDPPorts = [ ... ]; + networking.firewall.allowedUDPPortRanges = [ + { from = 27000; to = 27036; } +]; + # Or disable the firewall altogether. # networking.firewall.enable = false; @@ -135,16 +148,16 @@ neomutt notmuch isync - pinentry pinentry-curses - pinentry-gtk2 + anbox + protonup ]; #add 32bit support for graphics hardware.opengl.driSupport32Bit = true; programs.steam = { - enable = true; + enable = false; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server }; diff --git a/.local/installers/nixos/install.sh b/.local/installers/nixos/install.sh new file mode 100644 index 0000000..69b3726 --- /dev/null +++ b/.local/installers/nixos/install.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +mkdir ~/docs/ +mkdir ~/dl/ +mkdir ~/media/ +mkdir -p ~/.local/share/gnupg/ +mkdir -p ~/.config/mpd/playlists +mkdir -p ~/.local/share/desktop + +#setup .zprofile and zsh history file +cd ~ || return +ln -s ~/.profile ~/.zprofile +mkdir -p ~/.cache/zsh +touch ~/.cache/zsh/history + + +#set limits for esync +#sudo sh -c "echo '$USER hard nofile 524288' >> /etc/security/limits.conf" +#set limits for monero +#sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf" +#sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf" + +#fix issue with arduino ide and tiling wms +#sudo sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >> /etc/profile.d/jre.sh' + +#download collapse OS +mkdir -p "$HOME"/.local/src/ +cd "$HOME"/.local/src/ +wget http://collapseos.org/files/collapseos-latest.tar.gz +cd - + +#set wallpaper +ln -s ~/media/img/wallpapers/alena-aenami-eclipse-1k.jpg ~/.config/wall + +#link Xresources for xwayland +ln -s ~/.config/Xresources ~/.Xdefaults diff --git a/.local/share/gnupg/gpg-agent.conf b/.local/share/gnupg/gpg-agent.conf index 2c94603..e69de29 100644 --- a/.local/share/gnupg/gpg-agent.conf +++ b/.local/share/gnupg/gpg-agent.conf @@ -1 +0,0 @@ -pinentry-program /run/current-system/sw/bin/pinentry diff --git a/.profile b/.profile index a7a8fc2..1d45233 100644 --- a/.profile +++ b/.profile @@ -71,6 +71,5 @@ mount /media/nagato/ & if [ "$(tty)" = /dev/tty1 ]; then - ~/.local/init/init.sh -i ~/.local/init/config-nixos - exec dbus-launch sway + [ -f /bin/sway ] && exec dbus-launch sway fi