home/nixos/graphical.nix

50 lines
930 B
Nix
Raw Normal View History

2023-10-21 12:56:02 +02:00
{
pkgs,
2023-10-27 23:40:45 +02:00
fox-layout,
2023-10-21 12:56:02 +02:00
background-image ? "pan-wire-3.png",
...
}:
{
# Enable the X11 windowing system.
2023-10-27 23:40:45 +02:00
services.xserver = {
enable = true;
desktopManager.xfce.enable = true;
displayManager = {
defaultSession = "xfce";
lightdm = {
background = ../backgrounds/${background-image};
greeters.slick.enable = true;
};
};
layout = "fox";
2023-10-29 19:30:56 +01:00
xkbOptions = "caps:escape";
2023-10-27 23:40:45 +02:00
extraLayouts.fox = {
description = "Layout suitable to be used by a fox";
languages = ["se"];
symbolsFile = fox-layout;
2023-10-21 12:56:02 +02:00
};
};
2023-10-28 11:21:02 +02:00
console.useXkbConfig = true;
2023-10-21 12:56:02 +02:00
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.bluetooth.enable = true;
users.users.xenia = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [
stilo-themes
firefox
];
}