Add config for laptop
Some checks failed
pre-commit / pre-commit (push) Failing after 19s

This commit is contained in:
2024-04-18 19:29:08 +02:00
parent 3999a552d4
commit fca52c4b84
14 changed files with 419 additions and 12 deletions

View File

@@ -15,6 +15,10 @@
# Networking stuff
networking.hostName = "magicman"; # Define your hostname.
networking.networkmanager.enable = true;
networking.nftables.enable = true;
networking.firewall = {
enable = true;
};
# Set time stuff
time.timeZone = "Europe/Oslo";
@@ -23,19 +27,19 @@
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiVdpau
libvdpau-va-gl
# intel-media-driver
# vaapiVdpau
# libvdpau-va-gl
];
};
# Setup hyprland
services.xserver.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};
# programs.hyprland = {
# enable = true;
# xwayland.enable = true;
# portalPackage = pkgs.xdg-desktop-portal-hyprland;
# };
# Setup common XDG env vars
environment.sessionVariables = rec {
@@ -59,6 +63,7 @@
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "root" "torjus" ];
nixpkgs.config.allowUnfree = true;
# Install system-wide packages

View File

@@ -3,6 +3,6 @@
./configuration.nix
./hardware-configuration.nix
../../system
../../home
../../home/magicman.nix
];
}