mirror of
https://github.com/danbulant/dotfiles
synced 2026-05-24 12:35:34 +00:00
updates
This commit is contained in:
parent
0cd370683d
commit
3719cb9a8a
3 changed files with 31 additions and 8 deletions
|
|
@ -9,7 +9,14 @@ in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
<nixos-hardware/lenovo/legion/16ach6h/hybrid>
|
# <nixos-hardware/lenovo/legion/16ach6h/hybrid> # this is borked in latest update for some reason, edid doesn't build
|
||||||
|
<nixos-hardware/common/cpu/amd>
|
||||||
|
<nixos-hardware/common/cpu/amd/pstate.nix>
|
||||||
|
<nixos-hardware/common/cpu/amd/zenpower.nix>
|
||||||
|
<nixos-hardware/common/gpu/amd>
|
||||||
|
<nixos-hardware/common/gpu/nvidia/prime.nix>
|
||||||
|
<nixos-hardware/common/pc/laptop>
|
||||||
|
<nixos-hardware/common/pc/laptop/ssd>
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
./cachix.nix
|
./cachix.nix
|
||||||
|
|
@ -134,15 +141,25 @@ in
|
||||||
# The nvidia fun part
|
# The nvidia fun part
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
|
|
||||||
|
boot.kernelModules = ["amdgpu"];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
prime = {
|
prime = {
|
||||||
# hardware specific, beware!
|
# hardware specific, beware!
|
||||||
amdgpuBusId = lib.mkForce "PCI:01:00:0";
|
amdgpuBusId = lib.mkForce "PCI:06:00:0";
|
||||||
nvidiaBusId = lib.mkForce "PCI:06:00:0";
|
nvidiaBusId = lib.mkForce "PCI:01:00:0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
# OBS Studio virtual camera
|
||||||
|
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||||
|
v4l2loopback
|
||||||
|
];
|
||||||
|
boot.extraModprobeConfig = ''
|
||||||
|
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||||
|
'';
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
|
||||||
15
home.nix
15
home.nix
|
|
@ -37,6 +37,9 @@ in
|
||||||
jetbrains.phpstorm
|
jetbrains.phpstorm
|
||||||
jetbrains.pycharm-community-bin
|
jetbrains.pycharm-community-bin
|
||||||
jetbrains.clion
|
jetbrains.clion
|
||||||
|
jetbrains.goland
|
||||||
|
jetbrains.datagrip
|
||||||
|
datovka
|
||||||
nwg-displays
|
nwg-displays
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
mongodb-compass
|
mongodb-compass
|
||||||
|
|
@ -53,6 +56,7 @@ in
|
||||||
kdePackages.ksystemstats
|
kdePackages.ksystemstats
|
||||||
kdePackages.kinfocenter
|
kdePackages.kinfocenter
|
||||||
kdePackages.kirigami-addons
|
kdePackages.kirigami-addons
|
||||||
|
kdePackages.ark
|
||||||
#xorg.xbacklight
|
#xorg.xbacklight
|
||||||
cachix
|
cachix
|
||||||
playerctl
|
playerctl
|
||||||
|
|
@ -60,6 +64,7 @@ in
|
||||||
qt6ct
|
qt6ct
|
||||||
nil # nix language server
|
nil # nix language server
|
||||||
|
|
||||||
|
gping
|
||||||
caddy
|
caddy
|
||||||
jq
|
jq
|
||||||
htmlq
|
htmlq
|
||||||
|
|
@ -128,7 +133,7 @@ in
|
||||||
pipx
|
pipx
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
|
|
||||||
unstable-pkgs.prisma-engines
|
# unstable-pkgs.prisma-engines
|
||||||
openssl
|
openssl
|
||||||
gcc
|
gcc
|
||||||
# required by mise plugins
|
# required by mise plugins
|
||||||
|
|
@ -146,11 +151,11 @@ in
|
||||||
shellInit = with unstable-pkgs; ''
|
shellInit = with unstable-pkgs; ''
|
||||||
source ~/.config/fish/config-old.fish
|
source ~/.config/fish/config-old.fish
|
||||||
|
|
||||||
set -x PRISMA_SCHEMA_ENGINE_BINARY "${prisma-engines}/bin/schema-engine"
|
|
||||||
set -x PRISMA_QUERY_ENGINE_BINARY "${prisma-engines}/bin/query-engine"
|
|
||||||
set -x PRISMA_QUERY_ENGINE_LIBRARY "${prisma-engines}/lib/libquery_engine.node"
|
|
||||||
set -x PRISMA_FMT_BINARY "${prisma-engines}/bin/prisma-fmt"
|
|
||||||
'';
|
'';
|
||||||
|
# set -x PRISMA_SCHEMA_ENGINE_BINARY "${prisma-engines}/bin/schema-engine"
|
||||||
|
# set -x PRISMA_QUERY_ENGINE_BINARY "${prisma-engines}/bin/query-engine"
|
||||||
|
# set -x PRISMA_QUERY_ENGINE_LIBRARY "${prisma-engines}/lib/libquery_engine.node"
|
||||||
|
# set -x PRISMA_FMT_BINARY "${prisma-engines}/bin/prisma-fmt"
|
||||||
plugins = with pkgs.fishPlugins; [
|
plugins = with pkgs.fishPlugins; [
|
||||||
{ name = "grc"; src = grc.src; }
|
{ name = "grc"; src = grc.src; }
|
||||||
{ name = "tide"; src = tide.src; }
|
{ name = "tide"; src = tide.src; }
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
|
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
|
||||||
sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
|
sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
|
||||||
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
|
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
|
||||||
|
sudo nix-channel --add https://nixos.org/channels/nixos-24.05 nixos
|
||||||
sudo nix-channel --update
|
sudo nix-channel --update
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue