mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-08-05 05:46:33 +05:30
Compare commits
3 Commits
32da04b3f1
...
4814cc4722
| Author | SHA1 | Date | |
|---|---|---|---|
|
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": {
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user