mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-08-05 05:46:33 +05:30
Compare commits
6 Commits
32da04b3f1
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
b17687e37a
|
|||
|
2dd80a2406
|
|||
|
414f448d36
|
|||
|
4814cc4722
|
|||
|
030377427b
|
|||
|
5c1cedeb98
|
6
flake.lock
generated
6
flake.lock
generated
@@ -1523,11 +1523,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771924703,
|
"lastModified": 1784904497,
|
||||||
"narHash": "sha256-FdXguczx6AcfEnEPhKm76CdjsvAKQ88H4CHt43bhO6s=",
|
"narHash": "sha256-fd7YDkswyy5IlKUJ3aRcrtCSh7ubcW9uMGWOIxFBovI=",
|
||||||
"owner": "tuxdotrs",
|
"owner": "tuxdotrs",
|
||||||
"repo": "tpanel",
|
"repo": "tpanel",
|
||||||
"rev": "9b8c4df5961eb541fd60e8ea424266790c3969a1",
|
"rev": "fd5a96c4e84c62ec28c5596a5d3775f9523a2a56",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -4,20 +4,13 @@
|
|||||||
inputs.treefmt-nix.flakeModule
|
inputs.treefmt-nix.flakeModule
|
||||||
];
|
];
|
||||||
|
|
||||||
perSystem =
|
perSystem = {
|
||||||
{
|
treefmt.config = {
|
||||||
config,
|
projectRootFile = "flake.nix";
|
||||||
pkgs,
|
flakeCheck = true;
|
||||||
system,
|
programs = {
|
||||||
...
|
nixfmt.enable = true;
|
||||||
}:
|
|
||||||
{
|
|
||||||
treefmt.config = {
|
|
||||||
projectRootFile = "flake.nix";
|
|
||||||
flakeCheck = true;
|
|
||||||
programs = {
|
|
||||||
nixfmt.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
theme = "system";
|
theme = "system";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
|
model = "opencode-go/kimi-k3";
|
||||||
provider = {
|
provider = {
|
||||||
google = {
|
google = {
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
save = 1000000;
|
save = 1000000;
|
||||||
path = "$HOME/.local/share/zsh/.zsh_history";
|
path = "$HOME/.local/share/zsh/.zsh_history";
|
||||||
};
|
};
|
||||||
syntaxHighlighting.enable = true;
|
fastSyntaxHighlighting.enable = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
initContent = ''
|
initContent = ''
|
||||||
${lib.getExe pkgs.fastfetch}
|
${lib.getExe pkgs.fastfetch}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
mediaflow-proxy = {
|
mediaflow-proxy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 8888;
|
port = 8888;
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
APP__SERVER__HOST = "0.0.0.0";
|
APP__SERVER__HOST = "0.0.0.0";
|
||||||
APP__SERVER__PORT = "8888";
|
APP__SERVER__PORT = "8888";
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
flake.modules.nixos.canopus =
|
flake.modules.nixos.canopus =
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}@innerArgs:
|
}@innerArgs:
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
]
|
]
|
||||||
++ [ inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503 ];
|
++ [ inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503 ];
|
||||||
|
|
||||||
|
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
@@ -26,9 +28,18 @@
|
|||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
hardware = {
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
open = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
upower.enable = true;
|
upower.enable = true;
|
||||||
|
|
||||||
@@ -129,6 +140,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.config.cudaSupport = true;
|
||||||
nixpkgs.hostPlatform = lib.mkDefault system;
|
nixpkgs.hostPlatform = lib.mkDefault system;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
nvtopPackages.full
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
13
modules/nixos/desktop/gpu-screen-recorder.nix
Normal file
13
modules/nixos/desktop/gpu-screen-recorder.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.desktop =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.gpu-screen-recorder = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gpu-screen-recorder-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user