feat: replace i3wm with hyprland

This commit is contained in:
Ryan Yin
2023-05-04 23:59:35 +08:00
committed by ryan4yin
parent 9e549fb733
commit 830605aeec
59 changed files with 1947 additions and 42 deletions

View File

@@ -8,7 +8,8 @@
imports =
[
../../modules/system.nix
../../modules/i3.nix
../../modules/hyprland.nix
../../modules/nixpkgs-wayland.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
@@ -23,16 +24,25 @@
systemd-boot.enable = true;
};
networking.hostName = "msi-rtx4090"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking = {
hostName = "msi-rtx4090"; # Define your hostname.
wireless.enable = false; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Configure network proxy if necessary
# proxy.default = "http://user:password@proxy:port/";
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
networkmanager.enable = true;
interfaces.ens18 = {
useDHCP = false;
ipv4.addresses = [ {
address = "192.168.5.66";
prefixLength = 24;
} ];
};
defaultGateway = "192.168.5.201";
};
# Enable networking
networking.networkmanager.enable = true;
networking.defaultGateway = "192.168.5.201";
# for Nvidia GPU
services.xserver.videoDrivers = ["nvidia"];