mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 13:51:54 -05:00
cleaned up and abstracted hyprland module config into lightdm, desktopConfig, and systemConfig
This commit is contained in:
parent
72b7792902
commit
95c3b00038
|
@ -30,8 +30,7 @@
|
||||||
hyprland-protocols
|
hyprland-protocols
|
||||||
hyprnome
|
hyprnome
|
||||||
hyprshot
|
hyprshot
|
||||||
playerctls
|
playerctl
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
xfce.exo
|
xfce.exo
|
||||||
xfce.ristretto
|
xfce.ristretto
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
|
@ -59,6 +58,12 @@
|
||||||
WebBrowser=firefox
|
WebBrowser=firefox
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||||
|
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||||
|
};
|
||||||
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
|
|
|
@ -9,28 +9,26 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.desktopConfig.enable {
|
config = lib.mkIf config.desktopConfig.enable {
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver = {
|
services = {
|
||||||
enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
xkb.layout = "us";
|
gvfs.enable = true; # Mount, trash, etc.
|
||||||
xkb.variant = "";
|
# Enable the X11 windowing system.
|
||||||
excludePackages = with pkgs; [ xterm ];
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb.layout = "us";
|
||||||
|
xkb.variant = "";
|
||||||
|
excludePackages = with pkgs; [ xterm ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install pretty fonts.
|
# Install pretty fonts.
|
||||||
fonts.packages = with pkgs;
|
fonts.packages = with pkgs; [
|
||||||
[
|
liberation_ttf
|
||||||
liberation_ttf
|
(nerdfonts.override {
|
||||||
(nerdfonts.override {
|
fonts = [ "DroidSansMono" "FiraCode" "FiraMono" "Hack" "Noto" ];
|
||||||
fonts = [
|
})
|
||||||
"DroidSansMono"
|
];
|
||||||
"FiraCode"
|
|
||||||
"FiraMono"
|
|
||||||
"Hack"
|
|
||||||
"Noto"
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
|
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
# nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
|
# nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
|
||||||
# nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto";
|
# nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto";
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
security.pam.services.sddm.enableGnomeKeyring = true;
|
security.pam.services.sddm.enableGnomeKeyring = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.desktopConfig.displayManagers.lightdm.enable {
|
config = lib.mkIf config.desktopConfig.displayManagers.lightdm.enable {
|
||||||
|
|
||||||
|
security.pam.services.lightdm.enableKwallet = true;
|
||||||
|
security.pam.services.lightdm.enableGnomeKeyring = true;
|
||||||
|
|
||||||
services.xserver.displayManager.lightdm = {
|
services.xserver.displayManager.lightdm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
greeters.slick = {
|
greeters.slick = {
|
||||||
|
|
|
@ -10,20 +10,9 @@
|
||||||
desktopConfig.displayManagers.lightdm.enable = lib.mkDefault true;
|
desktopConfig.displayManagers.lightdm.enable = lib.mkDefault true;
|
||||||
|
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
services.power-profiles-daemon.enable = true;
|
|
||||||
services.upower.enable = true;
|
|
||||||
|
|
||||||
services.dbus.packages = [ pkgs.gcr ];
|
services.dbus.packages = [ pkgs.gcr ];
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
security.pam.services.gdm.enableKwallet = true;
|
|
||||||
security.pam.services.gdm.enableGnomeKeyring = true;
|
|
||||||
|
|
||||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
|
||||||
services.tumbler.enable = true; # Thumbnail support for images
|
|
||||||
|
|
||||||
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
|
||||||
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./network.nix ./sound.nix ./plymouth ./zramSwap ];
|
imports = [ ./network.nix ./sound.nix ./plymouth ./power-profiles-daemon ./zramSwap ];
|
||||||
|
|
||||||
|
|
||||||
|
systemConfig.power-profiles-daemon.enable = lib.mkDefault true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
|
|
14
nixosModules/systemConfig/power-profiles-daemon/default.nix
Normal file
14
nixosModules/systemConfig/power-profiles-daemon/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, lib, config, ... }: {
|
||||||
|
|
||||||
|
options = {
|
||||||
|
systemConfig.power-profiles-daemon.enable = lib.mkEnableOption
|
||||||
|
"Enables power-profiles-daemon.";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.systemConfig.power-profiles-daemon.enable {
|
||||||
|
services = {
|
||||||
|
power-profiles-daemon.enable = true;
|
||||||
|
upower.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue