Add GUI configuration
This commit is contained in:
parent
9f39802d28
commit
4386ea7477
|
@ -51,9 +51,23 @@
|
|||
# Allow propietary software
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Scrub zpool monthly
|
||||
services.zfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = "monthly";
|
||||
};
|
||||
|
||||
# Set timezone and synchronize NTP
|
||||
time.timeZone = "Europe/Brussels";
|
||||
services.timesyncd.enable = true;
|
||||
|
||||
# Enable the TLP daemon
|
||||
services.tlp.enable = true;
|
||||
|
||||
# Import other configuration modules
|
||||
imports = [
|
||||
./modules/networking.nix
|
||||
./modules/gui.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Display manager
|
||||
service.xserver.displayManager = {
|
||||
defaultSession = "sway";
|
||||
sddm = {
|
||||
enable = true;
|
||||
autologin = {
|
||||
enable = true;
|
||||
user = "coolneng";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Window manager
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
xwayland
|
||||
swaylock
|
||||
swaybg
|
||||
rofi
|
||||
waybar
|
||||
clipman
|
||||
grim
|
||||
slurp
|
||||
brillo
|
||||
imv
|
||||
kanshi
|
||||
redshift-wlr
|
||||
];
|
||||
extraSessionCommands = ''
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export MOZ_DBUS_REMOTE=1
|
||||
export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
'';
|
||||
};
|
||||
|
||||
# Blue light filter
|
||||
services.redshift = {
|
||||
package = pkgs.redshift-wlr;
|
||||
enable = true;
|
||||
temperature = {
|
||||
day = 6500;
|
||||
night = 5500;
|
||||
};
|
||||
};
|
||||
|
||||
# Bar
|
||||
programs.waybar.enable = true;
|
||||
}
|
Loading…
Reference in New Issue