mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
configured lightdm
This commit is contained in:
parent
ac3b4fcbb4
commit
86c9958a63
|
@ -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;
|
||||||
|
|
||||||
|
|
16
hosts/thinkpad/modules/lightdm/default.nix
Normal file
16
hosts/thinkpad/modules/lightdm/default.nix
Normal 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
BIN
images/nixos-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
images/wallpaper-blurred.png
Normal file
BIN
images/wallpaper-blurred.png
Normal file
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
BIN
images/wallpaper.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 MiB |
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue