Compare commits

..

3 Commits

Author SHA1 Message Date
tux
4814cc4722 feat(zsh): switch to fast-syntax-highlighting 2026-07-28 22:35:52 +05:30
tux
030377427b feat(canopus): setup nvidia 2026-07-28 22:21:42 +05:30
tux
5c1cedeb98 chore: update tpanel flake input 2026-07-28 19:01:20 +05:30
3 changed files with 21 additions and 5 deletions

6
flake.lock generated
View File

@@ -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": {

View File

@@ -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}

View File

@@ -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
];
};
}