configured lightdm

This commit is contained in:
Rouven Seifert 2022-12-31 12:28:53 +01:00
parent ac3b4fcbb4
commit 86c9958a63
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
8 changed files with 21 additions and 4 deletions

View file

@ -8,6 +8,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
./modules/autorandr ./modules/autorandr
./modules/networks ./modules/networks
./modules/lightdm
../../shared/vim.nix ../../shared/vim.nix
../../shared/input.nix ../../shared/input.nix
../../shared/sops.nix ../../shared/sops.nix
@ -27,9 +28,7 @@
services.xserver = { services.xserver = {
enable = true; enable = true;
displayManager = { displayManager = {
lightdm.enable = true;
defaultSession = "none+awesome"; defaultSession = "none+awesome";
}; };
windowManager.awesome = { windowManager.awesome = {
@ -47,6 +46,8 @@
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
programs.dconf.enable = true;
# control display backlight # control display backlight
programs.light.enable = true; programs.light.enable = true;

View file

@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
services.xserver.displayManager.lightdm = {
enable = true;
background = ../../../../images/wallpaper-blurred.png;
greeters.slick = {
enable = true;
draw-user-backgrounds = true;
extraConfig = ''
logo = ${../../../../images/nixos-logo.png}
show-a11y=false
show-hostname=false
'';
};
};
}

BIN
images/nixos-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 KiB

BIN
images/wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

View file

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# declaration of awesome wm is in hosts/<name>/default.nix # declaration of awesome wm is in hosts/<name>/default.nix
home.file.".wallpaper.jpg".source = ../../../../images/wallpaper.jpg; home.file.".wallpaper.png".source = ../../../../images/wallpaper.png;
xdg.configFile."awesome/rc.lua".source = ./rc.lua; xdg.configFile."awesome/rc.lua".source = ./rc.lua;
} }

View file

@ -162,7 +162,7 @@ local tasklist_buttons = gears.table.join(
local function set_wallpaper(s) local function set_wallpaper(s)
-- Wallpaper -- Wallpaper
awful.spawn.easy_async_with_shell("feh --no-fehbg --bg-scale $HOME/.wallpaper.jpg") awful.spawn.easy_async_with_shell("feh --no-fehbg --bg-scale $HOME/.wallpaper.png")
end end
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution) -- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)