Compare commits

...

7 Commits

Author SHA1 Message Date
67ed1a44b1 [z790prors] Add i3wm and kdeconnect 2024-09-02 09:09:52 -07:00
65bc26c017 [z790prors] Add johno to input group 2024-09-02 09:09:20 -07:00
b176707b41 [z790prors] nvidia driver tweaks 2024-09-02 09:08:48 -07:00
b851c0fed3 [z790prors] Use static networking
This should significantly speeds up boot time in userspace
2024-09-02 09:07:39 -07:00
6ea46d6e9c Add z790prors top level home manager config 2024-08-24 12:20:12 -07:00
368b3040c3 Add sunshine to z790prors 2024-08-24 12:19:51 -07:00
c4be32f75b Update to beta nvidia driver 2024-08-24 12:19:22 -07:00
2 changed files with 54 additions and 7 deletions

View File

@@ -47,6 +47,17 @@
/home/johno/.config/home-manager/home-nix-book.nix /home/johno/.config/home-manager/home-nix-book.nix
]; ];
}; };
"johno@z790prors-nix" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs; };
modules = [
inputs.hyprland.homeManagerModules.default
/home/johno/.config/home-manager/home-z790prors.nix
];
};
}; };
}; };
} }

View File

@@ -22,17 +22,27 @@ in
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.useOSProber = true; boot.loader.grub.useOSProber = true;
networking.hostName = "z790prors-nix"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Set your time zone. # Set your time zone.
time.timeZone = "America/Los_Angeles"; time.timeZone = "America/Los_Angeles";
# The global useDHCP flag is deprecated, therefore explicitly set to false here. networking = {
# Per-interface useDHCP will be mandatory in the future, so this generated config hostName = "z790prors-nix"; # Define your hostname.
# replicates the default behaviour. domain = "oglehome";
networking.useDHCP = false; defaultGateway = "10.0.0.1";
networking.interfaces.enp3s0.useDHCP = true; nameservers = [ "10.0.0.1" ];
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
useDHCP = false;
interfaces.enp3s0.ipv4.addresses = [{
address = "10.0.0.37";
prefixLength = 24;
}];
};
# Configure network proxy if necessary # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
@@ -70,6 +80,12 @@ in
nvidiaSettings = true; nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.production; package = config.boot.kernelPackages.nvidiaPackages.production;
}; };
boot.initrd.kernelModules = [
"nvidia"
"nvidia_modeset"
"nvidia_uvm"
"nvidia_drm"
];
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.layout = "us"; # services.xserver.layout = "us";
@@ -88,7 +104,7 @@ in
users.users.johno = { users.users.johno = {
isNormalUser = true; isNormalUser = true;
description = "John Ogle"; description = "John Ogle";
extraGroups = [ "wheel" "networkmanager" "audio" "libvirtd" ]; # Enable sudo for the user. extraGroups = [ "wheel" "networkmanager" "audio" "libvirtd" "input" ]; # Enable sudo for the user.
}; };
users.users.eli = { users.users.eli = {
@@ -137,7 +153,21 @@ in
sddm.wayland.enable = true; sddm.wayland.enable = true;
#defaultSession = "plasmax11"; #defaultSession = "plasmax11";
}; };
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.xserver.windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
dmenu
i3status
i3lock
];
};
# Helps with i3. Not sure what dconf is though honestly
programs.dconf.enable = true;
programs.kdeconnect.enable = true;
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
@@ -154,6 +184,12 @@ in
#extraPkgs = pkgs: [ bumblebee glxinfo ]; #extraPkgs = pkgs: [ bumblebee glxinfo ];
#}; #};
}; };
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];