This commit is contained in:
Peder Bergebakken Sundt 2023-06-23 21:45:16 +02:00
parent 1e9560dc04
commit 54ba2cfd56
16 changed files with 41 additions and 47 deletions

View File

@ -48,7 +48,8 @@
environment.etc."current-system-flake".source = inputs.self; # the plan was to allow me to locate the new flake.lock, but alas https://github.com/NixOS/nix/issues/6895 environment.etc."current-system-flake".source = inputs.self; # the plan was to allow me to locate the new flake.lock, but alas https://github.com/NixOS/nix/issues/6895
/**/ /**/
environment.shells = with pkgs; [ bash zsh ]; environment.shells = with pkgs; [ bashInteractive zsh ]; # TODO: needed?
programs.zsh.enable = true;
nix.settings.allowed-users = [ "*" ]; # default nix.settings.allowed-users = [ "*" ]; # default
#nix.settings.allowed-users = [ "@nixbld" "@builders" ]; # TODO: this #nix.settings.allowed-users = [ "@nixbld" "@builders" ]; # TODO: this

View File

@ -138,6 +138,7 @@
nixos-rebuild-nom nixos-rebuild-nom
pkgs.home-manager pkgs.home-manager
pkgs.nix-output-monitor pkgs.nix-output-monitor
pkgs.cachix
]; ];
envrc-remote = mkShell [ envrc-remote = mkShell [
remote-exec remote-exec

View File

@ -6,6 +6,7 @@
# https://nixos.wiki/wiki/Nvidia # https://nixos.wiki/wiki/Nvidia
#nixpkgs.config.cudaSupport = true; # TODO: TOO SLOW, BREAKS #nixpkgs.config.cudaSupport = true; # TODO: TOO SLOW, BREAKS
#nixpkgs.config.nvidiaSupport = true; # TODO: used only by zenith
nixpkgs.config.allowUnfreePredicate = pkg: lib.any (x: x) [ nixpkgs.config.allowUnfreePredicate = pkg: lib.any (x: x) [
(lib.hasInfix "nvidia" (lib.toLower (lib.getName pkg))) (lib.hasInfix "nvidia" (lib.toLower (lib.getName pkg)))
(lib.hasInfix "cuda" (lib.toLower (lib.getName pkg))) (lib.hasInfix "cuda" (lib.toLower (lib.getName pkg)))
@ -27,7 +28,7 @@
#}; #};
environment.systemPackages = with pkgs; ([ environment.systemPackages = with pkgs; ([
nvtop nvtop-nvidia
] ++ lib.optional config.hardware.nvidia.prime.offload.enable [ ] ++ lib.optional config.hardware.nvidia.prime.offload.enable [
(writeShellScriptBin "prime-run" '' (writeShellScriptBin "prime-run" ''

View File

@ -3,11 +3,16 @@
# assumes common-gpu-amd from nixos-hardware is also added # assumes common-gpu-amd from nixos-hardware is also added
# TODO: should we move it from flake.nix to here? # TODO: should we move it from flake.nix to here?
# https://libreddit.noximilien.pbsds.net/r/archlinux/comments/nih9c9/amdgpu_vs_modesetting_in_current_510_kernels_xorg/ # nixos-hardware common-amd option
hardware.amdgpu.opencl = true;
nixpkgs.config.openglSupport = true; # why is this not set by hardware.opengl.enable ?
nixpkgs.config.rocmSupport = true; nixpkgs.config.rocmSupport = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
# https://libreddit.noximilien.pbsds.net/r/archlinux/comments/nih9c9/amdgpu_vs_modesetting_in_current_510_kernels_xorg/
services.xserver.videoDrivers = [ "amdgpu" ]; # use gpu, adaptive sync and and hardware page flipping services.xserver.videoDrivers = [ "amdgpu" ]; # use gpu, adaptive sync and and hardware page flipping
#services.xserver.videoDrivers = [ "modesetting" ]; # integrated (non-accelerated) framebuffer, KMS #services.xserver.videoDrivers = [ "modesetting" ]; # integrated (non-accelerated) framebuffer, KMS
@ -15,6 +20,6 @@
"L+ /opt/rocm/hip - - - - ${pkgs.hip}" "L+ /opt/rocm/hip - - - - ${pkgs.hip}"
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nvtop nvtop-amd
]; ];
} }

View File

@ -56,11 +56,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cage cage
weston weston
dialog
zenith
vimix-gtk-themes
flat-remix-icon-theme
feh
]; ];
# TODO: remove? Move? # TODO: remove? Move?

View File

@ -15,8 +15,8 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../hardware/rocm.nix ../../hardware/gpu/rocm.nix
../../hardware/opengl-intel.nix ../../hardware/gpu/intel.nix
../../users # home-manager ../../users # home-manager
../../users/pbsds ../../users/pbsds
@ -70,15 +70,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cage cage
weston weston
dialog
zenith
vimix-gtk-themes
flat-remix-icon-theme
feh
zotero
firefox
]; ];
# TODO: remove? Move? # TODO: remove? Move?

View File

@ -6,7 +6,7 @@
boot.loader.grub.useOSProber = true; boot.loader.grub.useOSProber = true;
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../hardware/opengl-intel.nix ../../hardware/gpu/intel.nix
../../users # home-manager ../../users # home-manager
../../users/pbsds ../../users/pbsds
@ -36,7 +36,7 @@
../../profiles/web/services/netdata.nix ../../profiles/web/services/netdata.nix
../../profiles/web/services/nitter.nix ../../profiles/web/services/nitter.nix
#../../profiles/web/services/ntopng.nix #../../profiles/web/services/ntopng.nix
../../profiles/web/services/owncast.nix #../../profiles/web/services/owncast.nix
#../../profiles/web/services/paperless.nix #../../profiles/web/services/paperless.nix
../../profiles/web/services/polaris.nix ../../profiles/web/services/polaris.nix
#../../profiles/web/services/resilio.nix #../../profiles/web/services/resilio.nix
@ -124,11 +124,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cage cage
weston weston
dialog
zenith
vimix-gtk-themes
flat-remix-icon-theme
feh
]; ];
# TODO: remove? Move? # TODO: remove? Move?

View File

@ -10,12 +10,12 @@
systemd.services."getty@tty1".enable = false; systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false; systemd.services."autovt@tty1".enable = false;
boot.kernelPackages = pkgs.linuxPackages_latest; # amdgpu audio fix when at 4k@60fps #boot.kernelPackages = pkgs.linuxPackages_latest; # amdgpu audio fix when at 4k@60fps
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../hardware/cuda.nix ../../hardware/gpu/cuda.nix
../../hardware/opengl-intel.nix ../../hardware/gpu/intel.nix
../../users # home-manager ../../users # home-manager
../../users/pbsds ../../users/pbsds
@ -87,20 +87,10 @@
#TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18 #TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18
# Installed system packages # Installed system packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cage cage
weston weston
dialog
zenith
vimix-gtk-themes
flat-remix-icon-theme
feh
zotero
firefox
]; ];
# TODO: remove? Move? # TODO: remove? Move?

View File

@ -12,10 +12,12 @@
programs.gnome-terminal.enable = false; programs.gnome-terminal.enable = false;
services.tumbler.enable = true; services.tumbler.enable = true; # TODO: needed when we have ffmpegthumbnailer?
services.gnome.sushi.enable = true; services.gnome.sushi.enable = true;
services.gnome.gnome-online-accounts.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
firefox
pavucontrol pavucontrol
lxterminal lxterminal
# TODO: shadow gnome-terminal # TODO: shadow gnome-terminal

View File

@ -27,15 +27,16 @@
strace strace
killall killall
pciutils pciutils
htop htop
glances glances
bottom
zenith
#sshfs #sshfs
entr entr
tealdeer # tldr, but rust tealdeer # tldr, but rust
axel aria axel aria aria2
bat bat
xe # xargs alternative xe # xargs alternative
sd # sed alternative sd # sed alternative
@ -49,6 +50,8 @@
du-dust # du alternative du-dust # du alternative
ncdu # Disk usage analyzer with an ncurses interface ncdu # Disk usage analyzer with an ncurses interface
dialog # remove?
visidata visidata
sqlite sqlite
]; ];

View File

@ -12,5 +12,7 @@
#comma #comma
nixfmt nixfmt
alejandra alejandra
#nixpkgs-hammering
#nixpkgs-review
]; ];
} }

View File

@ -7,7 +7,11 @@
vimv vimv
xclip xclip
fzf fzf
#rmate-sh # TODO: add to nixpkgs rmate-sh
vimix-gtk-themes
flat-remix-icon-theme
feh
]; ];
# TODO: fzf for zsh # TODO: fzf for zsh
programs.bash.shellInit = '' programs.bash.shellInit = ''

View File

@ -71,6 +71,7 @@
#nix-template #nix-template
nix-output-monitor nix-output-monitor
nixpkgs-review nixpkgs-review
nixpkgs-hammering
manix manix
comma comma

View File

@ -5,14 +5,15 @@
pulsar # TODO: config, transition into this pulsar # TODO: config, transition into this
discord discord
element-desktop#-wayland element-desktop#-wayland
slack
f3d f3d
firefox firefox
zotero
gnome.eog
gnome-connections gnome-connections
scrcpy scrcpy
slack
#spotify # use the flatpak instead #spotify # use the flatpak instead
transgui #transmission-remote-gtk transgui #transmission-remote-gtk
gnome.eog
]; ];
# flatpak # flatpak

View File

@ -27,6 +27,7 @@
gnomeExtensions.appindicator gnomeExtensions.appindicator
gnomeExtensions.removable-drive-menu gnomeExtensions.removable-drive-menu
gnomeExtensions.always-show-titles-in-overview gnomeExtensions.always-show-titles-in-overview
gnomeExtensions.no-titlebar-when-maximized
/* TODO: /* TODO:
gnomeExtensions.night-light-slider gnomeExtensions.night-light-slider
gnomeExtensions.tray-icons-reloaded gnomeExtensions.tray-icons-reloaded
@ -42,7 +43,7 @@
# extensions: # extensions:
"org/gnome/shell" = { "org/gnome/shell" = {
disable-user-extensions = false; disable-user-extensions = false;
# dconf dump /org/gnome/shell/ | grep ^enabled-extensions= # dconf dump /org/gnome/shell/ | grep ^enabled-extensions= | grep -E '\[.*\]' -o | sd ', ' '\n,'
enabled-extensions = [ enabled-extensions = [
"bluetooth-quick-connect@bjarosze.gmail.com" "bluetooth-quick-connect@bjarosze.gmail.com"
"gTile@vibou" "gTile@vibou"
@ -55,6 +56,7 @@
"appindicatorsupport@rgcjonas.gmail.com" "appindicatorsupport@rgcjonas.gmail.com"
"drive-menu@gnome-shell-extensions.gcampax.github.com" "drive-menu@gnome-shell-extensions.gcampax.github.com"
"Always-Show-Titles-In-Overview@gmail.com" "Always-Show-Titles-In-Overview@gmail.com"
"no-titlebar-when-maximized@alec.ninja"
]; ];
}; };