This commit is contained in:
Peder Bergebakken Sundt 2023-06-19 02:45:50 +02:00
parent d6f9b79097
commit b78ba78296
7 changed files with 35 additions and 11 deletions

View File

@ -25,24 +25,26 @@
* [ ] autogenerate ssh keys * [ ] autogenerate ssh keys
* [ ] switch to systemd networkd * [ ] switch to systemd networkd
* [ ] pre-commit hook with 'nix eval ...outPath' * [ ] pre-commit hook with 'nix eval ...outPath'
* [ ] use `nom` when deploying * [x] use `nom` when deploying
* [ ] figure out how to reuse system flake lock while deplying, leave the night job to upgrade * [ ] figure out how to reuse system flake lock while deplying, leave the night job to upgrade
* [ ] users/pbsds: Support multiple profiles, like headless, nixpkgs-dev, various desktops, hpc, pvv, etc * [ ] users/pbsds: Support multiple profiles, like headless, nixpkgs-dev, various desktops, hpc, pvv, etc
* [ ] gnome: * [ ] gnome:
* [ ] lxterminal * [x] lxterminal
* [ ] themes * [ ] replace gnome terminal
* [ ] shortcuts * [x] themes
* [x] shortcuts
* [ ] pavucontrol * [ ] pavucontrol
* [ ]
* [ ] nixos-generate-config instructions for new hosts * [ ] nixos-generate-config instructions for new hosts
* [ ] zfs, declarative pools? * [ ] zfs, declarative pools?
* [ ] some tunneling for NFS hosts * [ ] some tunneling for NFS hosts
* [ ] transgui config
* [ ] secrets - nix-sops ? * [ ] secrets - nix-sops ?
* flexget * flexget
* transmission * transmission
* transmission remote gui
* domeneshop * domeneshop
* [ ] hydra * [ ] hydra
* [ ] self-hosted binary cache (single-machine) (nix-serve, carinae, harmonia, eris or attic) * [ ] self-hosted binary cache (single-machine) (nix-serve, carinae, harmonia, eris or attic, ssh?)
* https://discourse.nixos.org/t/announcing-harmonia-a-nix-binary-cache-written-in-rust/19855 * https://discourse.nixos.org/t/announcing-harmonia-a-nix-binary-cache-written-in-rust/19855
* https://discourse.nixos.org/t/introducing-attic-a-self-hostable-nix-binary-cache-server/24343/1 * https://discourse.nixos.org/t/introducing-attic-a-self-hostable-nix-binary-cache-server/24343/1
* [ ] profiles/web: make ACME/nginx helper a function * [ ] profiles/web: make ACME/nginx helper a function

View File

@ -5,7 +5,7 @@
# https://nixos.wiki/wiki/Nvidia # https://nixos.wiki/wiki/Nvidia
nixpkgs.config.cudaSupport = true; #nixpkgs.config.cudaSupport = true; # TODO: TOO SLOW, BREAKS
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)))
@ -28,7 +28,7 @@
environment.systemPackages = with pkgs; ([ environment.systemPackages = with pkgs; ([
nvtop nvtop
] ++ lib.optional hardware.nvidia.prime.offload.enable [ ] ++ lib.optional config.hardware.nvidia.prime.offload.enable [
(writeShellScriptBin "prime-run" '' (writeShellScriptBin "prime-run" ''
export __NV_PRIME_RENDER_OFFLOAD=1 export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0

View File

@ -5,11 +5,12 @@
# https://libreddit.noximilien.pbsds.net/r/archlinux/comments/nih9c9/amdgpu_vs_modesetting_in_current_510_kernels_xorg/ # https://libreddit.noximilien.pbsds.net/r/archlinux/comments/nih9c9/amdgpu_vs_modesetting_in_current_510_kernels_xorg/
nixpkgs.config.rocmSupport = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
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
nixpkgs.config.rocmSupport = true;
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.hip}" "L+ /opt/rocm/hip - - - - ${pkgs.hip}"
]; ];

View File

@ -3,6 +3,12 @@
{ {
services.flatpak.enable = true; services.flatpak.enable = true;
# TODO: integrate into gnome-software
# TODO: somehow run this, like i do in home-manager
# flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# fix missing fonts in flatpak, without resorting to copying fonts to a dedicated folder # fix missing fonts in flatpak, without resorting to copying fonts to a dedicated folder
# via https://github.com/NixOS/nixpkgs/issues/119433#issuecomment-1326957279 # via https://github.com/NixOS/nixpkgs/issues/119433#issuecomment-1326957279
system.fsPackages = [ pkgs.bindfs ]; system.fsPackages = [ pkgs.bindfs ];

View File

@ -16,6 +16,7 @@
services.gnome.sushi.enable = true; services.gnome.sushi.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
pavucontrol
lxterminal lxterminal
ffmpegthumbnailer ffmpegthumbnailer
gnomeExtensions.appindicator gnomeExtensions.appindicator

View File

@ -2,6 +2,7 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
atom # TODO: config atom # TODO: config
#pulsar
discord discord
element-desktop#-wayland element-desktop#-wayland
f3d f3d
@ -9,7 +10,7 @@
gnome-connections gnome-connections
scrcpy scrcpy
slack slack
#spotify #spotify # use the flatpak instead
transgui #transmission-remote-gtk transgui #transmission-remote-gtk
gnome.eog gnome.eog
]; ];

View File

@ -38,7 +38,8 @@
]; ];
#dump "org/gnome/settings-daemon/plugins/power" #dump "org/gnome/settings-daemon/plugins/power"
dconf.settings = { dconf.settings = with lib.hm.gvariant; {
# 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=
@ -69,6 +70,7 @@
picture-uri = "file://${../../files/screensaver.jpg}"; picture-uri = "file://${../../files/screensaver.jpg}";
}; };
# theme
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
color-scheme = "prefer-dark"; color-scheme = "prefer-dark";
enable-hot-corners = false; enable-hot-corners = false;
@ -77,6 +79,8 @@
#"org/gnome/desktop/wm/preferences" = { #"org/gnome/desktop/wm/preferences" = {
# button-layout = ":minimize,close"; # button-layout = ":minimize,close";
#}; #};
# behaviour
"org/gnome/desktop/peripherals/touchpad" = { "org/gnome/desktop/peripherals/touchpad" = {
disable-while-typing = false; disable-while-typing = false;
natural-scroll = false; natural-scroll = false;
@ -97,5 +101,14 @@
"org/gtk/settings/file-chooser" = { "org/gtk/settings/file-chooser" = {
sort-directories-first = true; sort-directories-first = true;
}; };
"org/gnome/settings-daemon/plugins/color" = {
night-light-enabled = true;
night-light-schedule-automatic = false;
night-light-schedule-from = 23.5;
night-light-schedule-to = 5.0;
night-light-temperature = mkUint32 4150;
};
}; };
} }