nvidia + tweaks

This commit is contained in:
Max Chaev 2025-01-08 20:49:43 +03:00
parent c48ce43ee4
commit abbf0cd2f3
17 changed files with 109 additions and 50 deletions

BIN
car.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

48
flake.lock generated
View File

@ -228,11 +228,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734279981, "lastModified": 1734797603,
"narHash": "sha256-NdaCraHPp8iYMWzdXAt5Nv6sA3MUzlCiGiR586TCwo0=", "narHash": "sha256-ulZN7ps8nBV31SE+dwkDvKIzvN6hroRY8sYOT0w+E28=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "aa9f40c906904ebd83da78e7f328cd8aeaeae785", "rev": "f0f0dc4920a903c3e08f5bdb9246bb572fcae498",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -287,11 +287,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734344598, "lastModified": 1735381016,
"narHash": "sha256-wNX3hsScqDdqKWOO87wETUEi7a/QlPVgpC/Lh5rFOuA=", "narHash": "sha256-CyCZFhMUkuYbSD6bxB/r43EdmDE7hYeZZPTCv0GudO4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "83ecd50915a09dca928971139d3a102377a8d242", "rev": "10e99c43cdf4a0713b4e81d90691d22c6a58bdf2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -308,11 +308,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734093295, "lastModified": 1734862405,
"narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=", "narHash": "sha256-bXZJvUMJ2A6sIpYcCUAGjYCD5UDzmpmQCdmJSkPhleU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8", "rev": "cb27edb5221d2f2920a03155f8becc502cf60e35",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -393,11 +393,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1734126203, "lastModified": 1735268880,
"narHash": "sha256-0XovF7BYP50rTD2v4r55tR5MuBLet7q4xIz6Rgh3BBU=", "narHash": "sha256-7QEFnKkzD13SPxs+UFR5bUFN2fRw+GlL0am72ZjNre4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "71a6392e367b08525ee710a93af2e80083b5b3e2", "rev": "7cc0bff31a3a705d3ac4fdceb030a17239412210",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -409,11 +409,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1734119587, "lastModified": 1735291276,
"narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=", "narHash": "sha256-NYVcA06+blsLG6wpAbSPTCyLvxD/92Hy4vlY9WxFI1M=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5", "rev": "634fd46801442d760e09493a794c4f15db2d0cbb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -454,11 +454,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1734446876, "lastModified": 1735378670,
"narHash": "sha256-cGZBeTh+9pChvz0phepOzM+NK7QVl0Cp5EPBlh1l5xc=", "narHash": "sha256-A8aQA+YhJfA8mUpzXOZdlXNnKiZg2EcpCn1srgtBjTs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "f4b7fd46f6caf984fdfc41281792eac7b7ab8f24", "rev": "f4b0b81ef9eb4e37e75f32caf1f02d5501594811",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -516,11 +516,11 @@
"tinted-tmux": "tinted-tmux" "tinted-tmux": "tinted-tmux"
}, },
"locked": { "locked": {
"lastModified": 1734110168, "lastModified": 1735253599,
"narHash": "sha256-Q0eeLYn45ErXlqGQyXmLLHGe1mqnUiK0Y9wZRa1SNFI=", "narHash": "sha256-aKLAUkdeMH2N5gMDNiOC7KghRNy1necLtLa9+zUcj1g=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "a9e3779949925ef22f5a215c5f49cf520dea30b1", "rev": "963e77a3a4fc2be670d5a9a6cbeb249b8a43808a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -617,11 +617,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733761991, "lastModified": 1734704479,
"narHash": "sha256-s4DalCDepD22jtKL5Nw6f4LP5UwoMcPzPZgHWjAfqbQ=", "narHash": "sha256-MMi74+WckoyEWBRcg/oaGRvXC9BVVxDZNRMpL+72wBI=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "0ce9d149d99bc383d1f2d85f31f6ebd146e46085", "rev": "65712f5af67234dad91a5a4baee986a8b62dbf8f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -5,9 +5,9 @@
stylix = { stylix = {
enable = true; enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/eighties.yaml";
image = ../../topography.png; image = ../../car.png;
cursor = { cursor = {
package = pkgs.oreo-cursors-plus; package = pkgs.oreo-cursors-plus;

View File

@ -1,18 +1,39 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.vscode = { programs.vscode =
{
enable = true; enable = true;
package = pkgs.vscodium; package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions;
[
jnoortheen.nix-ide jnoortheen.nix-ide
ms-dotnettools.vscode-dotnet-runtime
ms-dotnettools.csharp
golang.go golang.go
waderyan.gitblame waderyan.gitblame
llvm-vs-code-extensions.vscode-clangd
ms-vscode.cmake-tools
vadimcn.vscode-lldb
donjayamanne.githistory
samuelcolvin.jinjahtml
]; ];
userSettings = { userSettings =
{
"terminal.integrated.defaultProfile.linux" = "null";
"terminal.integrated.shell.linux" = "/run/current-system/sw/bin/bash";
"files.autoSave" = "on"; "files.autoSave" = "on";
"editor.minimap.enabled" = false; "editor.minimap.enabled" = false;
"clangd.fallbackFlags" = [
"-Wall"
"-Wextra"
"-Wpedantic"
"-Werror"
"-I./includes"
];
"editor.rulers" = [
{
"column" = 80;
"color" = "#ff9900";
}
];
}; };
}; };
} }

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
programs.obs-studio = { programs.obs-studio = {
@ -10,10 +10,11 @@
]; ];
}; };
home.packages = [ home.packages = with pkgs; [
pkgs.jellyfin-ffmpeg jellyfin-ffmpeg
pkgs.libsForQt5.kdenlive libsForQt5.kdenlive
gpu-screen-recorder-gtk
]; ];
} }

View File

@ -3,6 +3,7 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
logseq logseq
joplin-desktop
alacritty alacritty
vlc vlc

View File

@ -26,14 +26,4 @@
services.gvfs.enable = true; services.gvfs.enable = true;
services.udisks2.enable = true; services.udisks2.enable = true;
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["ficache"];
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
} }

View File

@ -16,9 +16,11 @@
hardware.nvidia.prime = { hardware.nvidia.prime = {
sync.enable = true; #sync.enable = true;
#offload.enable = true;
reverseSync.enable = true;
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
amdgpuBusId = "PCI:4:2:0"; amdgpuBusId = "PCI:4:0:0";
}; };
} }

6
nixos/modules/nix-ld.nix Normal file
View File

@ -0,0 +1,6 @@
{...}:
{
programs.nix-ld = {
enable = true;
};
}

View File

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
services.postgresql = {
enable = true;
ensureDatabases = [ "mydatabase" ];
enableTCPIP = true;
# port = 5432;
authentication = pkgs.lib.mkOverride 10 ''
#...
#type database DBuser origin-address auth-method
local all all trust
# ipv4
host all all 127.0.0.1/32 trust
# ipv6
host all all ::1/128 trust
'';
initialScript = pkgs.writeText "backend-initScript" ''
CREATE ROLE nixcloud WITH LOGIN PASSWORD 'nixcloud' CREATEDB;
CREATE DATABASE nixcloud;
GRANT ALL PRIVILEGES ON DATABASE nixcloud TO nixcloud;
'';
};
}

View File

@ -0,0 +1,9 @@
{
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["ficache"];
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
}

View File

@ -2,7 +2,10 @@
{ {
services.zerotierone = { services.zerotierone = {
enable = true; enable = true;
joinNetworks = [ "41d49af6c287fe2b" ]; joinNetworks = [
"41d49af6c287fe2b"
"272f5eae16114dee"
];
}; };
} }

View File

@ -4,6 +4,9 @@
./modules/pipewire.nix ./modules/pipewire.nix
./modules/auto-cpufreq.nix ./modules/auto-cpufreq.nix
#./modules/zapret.nix #./modules/zapret.nix
#./modules/virtualbox.nix
./modules/postgresql.nix
./modules/nix-ld.nix
./modules/zerotierone.nix ./modules/zerotierone.nix
./modules/hardware/nvidia.nix ./modules/hardware/nvidia.nix

BIN
sunset-dusk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
sway-colorfull.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 MiB