first attempt at a legion setup

This commit is contained in:
Nickolaj Jepsen 2024-04-09 20:45:15 +00:00
parent b5febd4395
commit c69ed34507
11 changed files with 527 additions and 44 deletions

View file

@ -0,0 +1,58 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, username, inputs, ... }:
{
imports = [ ];
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
};
#services.xserver.enable = true;
#services.xserver.displayManager.gdm = {
# enable = true;
#};
programs.hyprland.enable = true;
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
programs.hyprland.xwayland.enable = true;
# programs.hyprland.enableNvidiaPatches = true;
home-manager.users.${username}.imports = [
./home-manager.nix
];
environment.systemPackages = [
pkgs.gtk3
];
hardware.opengl = {
enable = true;
driSupport = true;
#extraPackages = with pkgs; [
# vaapiVdpau
# libvdpau-va-gl
#];
};
boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "ahci" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.loader.grub.device = "nodev";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f222513b-ded1-49fa-b591-20ce86a2fe7f";
fsType = "ext4";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.virtualbox.guest.enable = true;
}