chore: code cleanup

This commit is contained in:
notohh 2023-01-01 08:10:18 -05:00
parent c7940736c2
commit 49d8b928b2

View file

@ -31,8 +31,6 @@
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.nameservers = [ "192.168.1.45" ]; networking.nameservers = [ "192.168.1.45" ];
hardware.opentabletdriver.enable = true;
# pihole # pihole
environment.etc = { environment.etc = {
"resolv.conf".text = "nameserver 192.168.1.45\n"; "resolv.conf".text = "nameserver 192.168.1.45\n";
@ -101,6 +99,24 @@
''; '';
}; };
hardware = {
nvidia = {
powerManagement.enable = true;
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
opengl = {
enable = true;
extraPackages = with pkgs; [
nvidia-vaapi-driver
];
};
opentabletdriver = {
enable = true;
daemon.enable = true;
};
};
users = { users = {
defaultUserShell = pkgs.nushell; defaultUserShell = pkgs.nushell;
users.notoh = { users.notoh = {
@ -257,20 +273,6 @@
channel = "https://nixos.org/channel/nixos-unstable"; channel = "https://nixos.org/channel/nixos-unstable";
}; };
hardware = {
nvidia = {
powerManagement.enable = true;
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
opengl = {
enable = true;
extraPackages = with pkgs; [
nvidia-vaapi-driver
];
};
};
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"qtwebkit-5.212.0-alpha4" "qtwebkit-5.212.0-alpha4"
"electron-12.2.3" "electron-12.2.3"