From 48780cfeb83ea612e7612f5d174925b9b2ce6771 Mon Sep 17 00:00:00 2001 From: Forestcat Date: Sun, 26 Nov 2023 21:33:06 +0100 Subject: [PATCH] ran alejandra formatter --- nixos/configuration.nix | 115 +++++++++++++++++++--------------------- 1 file changed, 54 insertions(+), 61 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 2ba44df..93661bc 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,14 +1,15 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). - -{ config, pkgs, ... }: - { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; + config, + pkgs, + ... +}: { + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ]; # Bootloader. boot.loader.grub.enable = true; @@ -21,7 +22,7 @@ "/crypto_keyfile.bin" = null; }; - boot.loader.grub.enableCryptodisk=true; + boot.loader.grub.enableCryptodisk = true; boot.initrd.luks.devices."luks-955d08e0-c2b1-4cc1-9318-24baa423d4d2".keyFile = "/crypto_keyfile.bin"; boot.initrd.luks.devices."luks-1a4418a8-689c-4826-b589-c574f25c8ba5".keyFile = "/crypto_keyfile.bin"; @@ -71,14 +72,12 @@ hardware.pulseaudio.enable = true; hardware.pulseaudio.support32Bit = true; hardware.pulseaudio.package = pkgs.pulseaudioFull; - - # Define a user account. Don't forget to set a password with ‘passwd’. users.users.forestcat = { isNormalUser = true; description = "forestcat"; - extraGroups = [ "networkmanager" "wheel" "audio" ]; + extraGroups = ["networkmanager" "wheel" "audio"]; packages = with pkgs; []; }; users.defaultUserShell = pkgs.nushell; @@ -89,42 +88,41 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget - pkgs.brave - pkgs.kitty - pkgs.swww - pkgs.rofi-wayland - pkgs.waybar - pkgs.dunst - pkgs.firefox - pkgs.lf - pkgs.networkmanagerapplet - pkgs.discord - pkgs.element-desktop - pkgs.wget - pkgs.helix - pkgs.unzip - pkgs.tldr - pkgs.steam - pkgs.git - pkgs.awesome - pkgs.lightdm - pkgs.neofetch - pkgs.pulseaudioFull - pkgs.toybox - pkgs.pavucontrol - pkgs.lxappearance - pkgs.lxappearance-gtk2 - pkgs.xorg.xev - pkgs.xfce.xfce4-pulseaudio-plugin - pkgs.xbindkeys - pkgs.xbindkeys-config - pkgs.traceroute - pkgs.xorg.xinit - pkgs.nil - - ]; + # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + # wget + pkgs.brave + pkgs.kitty + pkgs.swww + pkgs.rofi-wayland + pkgs.waybar + pkgs.dunst + pkgs.firefox + pkgs.lf + pkgs.networkmanagerapplet + pkgs.discord + pkgs.element-desktop + pkgs.wget + pkgs.helix + pkgs.unzip + pkgs.tldr + pkgs.steam + pkgs.git + pkgs.awesome + pkgs.lightdm + pkgs.neofetch + pkgs.pulseaudioFull + pkgs.toybox + pkgs.pavucontrol + pkgs.lxappearance + pkgs.lxappearance-gtk2 + pkgs.xorg.xev + pkgs.xfce.xfce4-pulseaudio-plugin + pkgs.xbindkeys + pkgs.xbindkeys-config + pkgs.traceroute + pkgs.xorg.xinit + pkgs.nil + ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. @@ -156,26 +154,24 @@ # Enabling wayland # programs.sway.enable = true; xdg.portal.enable = true; - xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk]; # services.xserver.wayland.enable = true; # Enabling awesome WM # services.xserver.windowManager.awesome.enable = true; services.xserver.desktopManager.xfce.enable = true; - # Enable Flatpack support services.flatpak.enable = true; # Enabling LightDM # services.xserver.displayManager.lightdm.enable = true; - + # Hyperland # programs.hyprland = { - # enable = true; - # xwayland.enable = true; + # enable = true; + # xwayland.enable = true; # }; - environment.sessionVariables = { WLR_NO_HARDWARE_CURSORS = "1"; # if mouse cursor invisible @@ -187,12 +183,9 @@ nvidia.modesetting.enable = true; }; - - # Enabling Pipewire for Audio Support - services.pipewire.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - + services.pipewire.enable = true; + nix.settings.experimental-features = ["nix-command" "flakes"]; # Automatic Garbage collection nix.gc = { @@ -202,8 +195,8 @@ }; #Hardwarebeschleunigung f@r wayland # hardware.opengl = { - # enable = true; - # driSupport = true; - # extraPackages = with pkgs; [ libva libva-utils libva-intel-driver ]; + # enable = true; + # driSupport = true; + # extraPackages = with pkgs; [ libva libva-utils libva-intel-driver ]; # }; }