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": {
|
||||
"lastModified": 1771924703,
|
||||
"narHash": "sha256-FdXguczx6AcfEnEPhKm76CdjsvAKQ88H4CHt43bhO6s=",
|
||||
"lastModified": 1784904497,
|
||||
"narHash": "sha256-fd7YDkswyy5IlKUJ3aRcrtCSh7ubcW9uMGWOIxFBovI=",
|
||||
"owner": "tuxdotrs",
|
||||
"repo": "tpanel",
|
||||
"rev": "9b8c4df5961eb541fd60e8ea424266790c3969a1",
|
||||
"rev": "fd5a96c4e84c62ec28c5596a5d3775f9523a2a56",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -4,14 +4,7 @@
|
||||
inputs.treefmt-nix.flakeModule
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
{
|
||||
perSystem = {
|
||||
treefmt.config = {
|
||||
projectRootFile = "flake.nix";
|
||||
flakeCheck = true;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
theme = "system";
|
||||
};
|
||||
settings = {
|
||||
model = "opencode-go/kimi-k3";
|
||||
provider = {
|
||||
google = {
|
||||
options = {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
save = 1000000;
|
||||
path = "$HOME/.local/share/zsh/.zsh_history";
|
||||
};
|
||||
syntaxHighlighting.enable = true;
|
||||
fastSyntaxHighlighting.enable = true;
|
||||
autosuggestion.enable = true;
|
||||
initContent = ''
|
||||
${lib.getExe pkgs.fastfetch}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
flake.modules.nixos.canopus =
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}@innerArgs:
|
||||
@@ -14,6 +15,7 @@
|
||||
]
|
||||
++ [ inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503 ];
|
||||
|
||||
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
@@ -26,9 +28,18 @@
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
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 = {
|
||||
xserver.videoDrivers = [ "nvidia" ];
|
||||
power-profiles-daemon.enable = true;
|
||||
upower.enable = true;
|
||||
|
||||
@@ -129,6 +140,11 @@
|
||||
};
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.config.cudaSupport = true;
|
||||
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