additions after installing nixos on laptop

chromebook
Alex 2022-06-19 22:06:53 -05:00
parent fa89b88d06
commit 15a86ad981
5 changed files with 86 additions and 65 deletions

View File

@ -3,7 +3,9 @@
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix ./hardware-configuration.nix
./gaming-configuration.nix
./sway-configuration.nix
]; ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
@ -29,12 +31,30 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
#enable flatpak
services.flatpak.enable = true;
networking.hostName = "gabriel"; # Define your hostname. networking.hostName = "gabriel"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. #networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
services.connman.enable = true;
networking.wireless.iwd.enable = true;
services.connman.wifi.backend = "iwd";
# Open ports in the firewall.
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;
# Set your time zone. # Set your time zone.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
@ -59,10 +79,9 @@
packages = with pkgs; [ packages = with pkgs; [
librewolf librewolf
yt-dlp yt-dlp
librewolf
zathura zathura
lutris
sfeed sfeed
chromium
]; ];
}; };
@ -77,41 +96,10 @@
enableSSHSupport = true; enableSSHSupport = true;
}; };
# Open ports in the firewall.
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;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty # gpu accelerated terminal
sway
#dbus-sway-environment
#configure-gtk
wayland
glib # gsettings glib # gsettings
dracula-theme # gtk theme dracula-theme # gtk theme
gnome3.adwaita-icon-theme # default gnome cursors gnome3.adwaita-icon-theme # default gnome cursors
swaylock
swayidle
grim # screenshot functionality
slurp # screenshot functionality
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
bemenu # wayland clone of dmenu
mako # notification system developed by swaywm maintainer
swaybg
waybar
xwayland
gammastep
zsh zsh
noto-fonts noto-fonts
noto-fonts-extra noto-fonts-extra
@ -128,20 +116,15 @@
file file
viu viu
bat bat
imv
pavucontrol pavucontrol
neovim neovim
git
shellcheck
pfetch pfetch
htop-vim htop-vim
radeontop
lf lf
mpv mpv
mpd mpd
ncmpcpp ncmpcpp
libnotify libnotify
jq
lynx lynx
mutt-wizard mutt-wizard
pass pass
@ -149,19 +132,15 @@
notmuch notmuch
isync isync
pinentry-curses pinentry-curses
anbox connman-gtk
protonup openssl
git
shellcheck
jq
]; ];
#add 32bit support for graphics #enable flatpak
hardware.opengl.driSupport32Bit = true; services.flatpak.enable = true;
programs.steam = {
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
};
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
@ -188,10 +167,4 @@
gtkUsePortal = true; gtkUsePortal = true;
}; };
# enable sway window manager
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
} }

View File

@ -0,0 +1,17 @@
{ config, pkgs, lib, ... }: {
environment.systemPackages = with pkgs; [
lutris
radeontop
];
#add 32bit support for graphics
hardware.opengl.driSupport32Bit = true;
programs.steam = {
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
};
}

View File

@ -0,0 +1,27 @@
{ config, pkgs, lib, ... }: {
environment.systemPackages = with pkgs; [
wayland
sway
alacritty
swaylock
swayidle
grim
slurp
wl-clipboard
mako
swaybg
waybar
xwayland
gammastep
rofi-wayland
imv
];
# enable sway window manager
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
}

View File

@ -33,7 +33,7 @@ monitor_only() {
MON="$1" MON="$1"
RES="$2" RES="$2"
echo "$MON $RES" >> fixscrsh.log echo "$MON $RES" >> ~/.cache/log/fixscrsh.log
[ -z "$1" ] && MON="$(get_mon)" [ -z "$1" ] && MON="$(get_mon)"
[ -z "$2" ] && RES="$(get_res "$MON")" [ -z "$2" ] && RES="$(get_res "$MON")"
@ -51,7 +51,11 @@ span() {
} }
menu() { menu() {
OPTS="laptop_only\nmonitor_only\nmirror\nspan\nquit" OPTS="laptop_only
monitor_only
mirror
span
quit"
SEL="$(echo "$OPTS" | bemenu)" SEL="$(echo "$OPTS" | bemenu)"

View File

@ -73,9 +73,9 @@ export AWT_TOOLKIT=MToolkit
#mount samba share, needs entry in /etc/fstab for this line to work #mount samba share, needs entry in /etc/fstab for this line to work
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0 # //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
mount /media/nagato/ & #mount /media/nagato/ &
if [ "$(tty)" = /dev/tty1 ]; then if [ "$(tty)" = /dev/tty1 ]; then
[ -f /bin/sway ] && exec dbus-launch sway exec dbus-launch sway
fi fi