nixos-config/DELL/nixos/services.nix

79 lines
1.5 KiB
Nix
Raw Normal View History

2021-12-16 13:04:27 +00:00
{ config, pkgs, ... }:
{
hardware = {
pulseaudio = {
enable = true;
};
};
# upgrade
programs = {
mtr.enable = true ;
zsh.enable = true;
fish.enable = true;
ssh = {
setXAuthLocation = true;
forwardX11 = true;
};
};
# SERVICES
services = {
clamav = {
daemon.enable = true;
updater.enable = true;
};
ntp.enable = true;
tlp.enable = true;
xserver = {
enable = true;
autorun = true;
2022-03-29 11:47:21 +00:00
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
i3lock
];
};
xautolock = {
enable = true;
time = 1;
locker = "${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png";
#notifier = "${pkgs.libnotify}/bin/notify-send 'Locking in 10 seconds'";
};
2021-12-16 13:04:27 +00:00
displayManager.defaultSession = "none+i3";
layout = "fr";
xkbOptions = "eurosign:e";
desktopManager = {
xterm.enable = false;
xfce.enable = true;
xfce.thunarPlugins = with pkgs; [ xfce.thunar-volman xfce.thunar-archive-plugin ];
2021-12-16 13:04:27 +00:00
};
};
2022-03-29 11:47:21 +00:00
udev.extraRules = ''
ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", RUN+="${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png";
'';
2021-12-16 13:04:27 +00:00
};
nixpkgs.config = {
2022-03-29 11:47:21 +00:00
#packageOverrides = pkgs: {
# polybar = pkgs.polybar.override {
# i3Support = true;
# pulseSupport = true;
# };
#};
2021-12-16 13:04:27 +00:00
allowUnfree = true;
};
}