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.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 = [ "@nixbld" "@builders" ]; # TODO: this

View File

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

View File

@ -6,6 +6,7 @@
# https://nixos.wiki/wiki/Nvidia
#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) [
(lib.hasInfix "nvidia" (lib.toLower (lib.getName pkg)))
(lib.hasInfix "cuda" (lib.toLower (lib.getName pkg)))
@ -27,7 +28,7 @@
#};
environment.systemPackages = with pkgs; ([
nvtop
nvtop-nvidia
] ++ lib.optional config.hardware.nvidia.prime.offload.enable [
(writeShellScriptBin "prime-run" ''

View File

@ -3,11 +3,16 @@
# assumes common-gpu-amd from nixos-hardware is also added
# 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;
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 = [ "modesetting" ]; # integrated (non-accelerated) framebuffer, KMS
@ -15,6 +20,6 @@
"L+ /opt/rocm/hip - - - - ${pkgs.hip}"
];
environment.systemPackages = with pkgs; [
nvtop
nvtop-amd
];
}

View File

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

View File

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

View File

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

View File

@ -10,12 +10,12 @@
systemd.services."getty@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 = [
./hardware-configuration.nix
../../hardware/cuda.nix
../../hardware/opengl-intel.nix
../../hardware/gpu/cuda.nix
../../hardware/gpu/intel.nix
../../users # home-manager
../../users/pbsds
@ -87,20 +87,10 @@
#TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18
# Installed system packages
environment.systemPackages = with pkgs; [
cage
weston
dialog
zenith
vimix-gtk-themes
flat-remix-icon-theme
feh
zotero
firefox
];
# TODO: remove? Move?

View File

@ -12,10 +12,12 @@
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.gnome-online-accounts.enable = true;
environment.systemPackages = with pkgs; [
firefox
pavucontrol
lxterminal
# TODO: shadow gnome-terminal

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,6 +27,7 @@
gnomeExtensions.appindicator
gnomeExtensions.removable-drive-menu
gnomeExtensions.always-show-titles-in-overview
gnomeExtensions.no-titlebar-when-maximized
/* TODO:
gnomeExtensions.night-light-slider
gnomeExtensions.tray-icons-reloaded
@ -42,7 +43,7 @@
# extensions:
"org/gnome/shell" = {
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 = [
"bluetooth-quick-connect@bjarosze.gmail.com"
"gTile@vibou"
@ -55,6 +56,7 @@
"appindicatorsupport@rgcjonas.gmail.com"
"drive-menu@gnome-shell-extensions.gcampax.github.com"
"Always-Show-Titles-In-Overview@gmail.com"
"no-titlebar-when-maximized@alec.ninja"
];
};