initial commit + sops!
This commit is contained in:
12
modules/gnome.nix
Normal file
12
modules/gnome.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, pkgs, stylix, ... }:
|
||||
{
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# stylix.targets.gnome.enable = true;
|
||||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
}
|
||||
|
||||
54
modules/hyprland/hyprland.nix
Normal file
54
modules/hyprland/hyprland.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{ config, pkgs, stylix, ... }:
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
# nvidiaPatches = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
|
||||
environment.sessionVariables = {
|
||||
# Cursor could be invisible without this
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
# Electron, use wayland
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# bar
|
||||
(waybar.overrideAttrs (oldAttrs: {
|
||||
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
||||
})
|
||||
)
|
||||
#Elkowar wacky widges (alternate bar)
|
||||
#eww
|
||||
|
||||
# notifications
|
||||
dunst
|
||||
#mako
|
||||
|
||||
libnotify
|
||||
|
||||
# wallpaper
|
||||
swww
|
||||
|
||||
# app-launcher
|
||||
rofi-wayland
|
||||
];
|
||||
|
||||
services.dbus.enable = true;
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
hardware = {
|
||||
opengl.enable = true;
|
||||
nvidia.modesetting.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
17
modules/nvidia.nix
Normal file
17
modules/nvidia.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
virtualisation.docker.enableNvidia = true;
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
}
|
||||
Reference in New Issue
Block a user