hopper things

This commit is contained in:
xunuwu 2024-02-09 21:55:57 +01:00
parent 498f3050d5
commit 926f8b190b
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
14 changed files with 96 additions and 22 deletions

View file

@ -21,6 +21,7 @@
++ [
./nixdesk
"${mod}/programs/gamemode.nix"
"${mod}/services/syncthing.nix"
"${self}/secrets"
{
home-manager = {
@ -33,8 +34,36 @@
hopper = nixosSystem {
inherit specialArgs;
modules = [
./core
./core/boot.nix
./hopper
"${self}/secrets"
"${mod}/core"
"${mod}/programs/home-manager.nix"
"${mod}/desktop"
"${mod}/desktop/awesome.nix"
"${mod}/hardware/opengl.nix"
"${mod}/hardware/steam-hardware.nix"
"${mod}/hardware/bluetooth.nix"
"${mod}/hardware/qmk.nix"
"${mod}/network/avahi.nix"
"${mod}/network/networkd.nix"
"${mod}/network/tailscale.nix"
"${mod}/services"
"${mod}/services/pipewire.nix"
"${mod}/services/syncthing.nix"
{
home-manager = {
users.xun.imports = homeImports."xun@hopper";
extraSpecialArgs = specialArgs;
};
}
];
};
};

View file

@ -1,8 +1,7 @@
{inputs}: {
{inputs, ...}: {
imports = with inputs.hardware.nixosModules; [
common-cpu-intel
common-pc-hdd
common-gpu-nvidia
./hardware.nix
];

View file

@ -1,4 +1,14 @@
{...}: {
{config, ...}: {
nixpkgs.hostPlatform.system = "x86_64-linux";
## nvidia gpu
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
boot = {
initrd = {
availableKernelModules = ["ehci_pci" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];

View file

@ -13,6 +13,8 @@
networking.hostName = "nixdesk";
boot.kernelPackages = pkgs.linuxPackages_latest;
swapDevices = [];
system.stateVersion = "23.11";