From 8f255bcea348ff4005ac704db01b93a00cf48da5 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Thu, 15 Sep 2022 08:25:16 +0200 Subject: [PATCH] refactoring services --- hosts/dell-5590/nixos/services.nix | 17 ++++++++++++----- hosts/dell-5590/nixpkgs/packages.nix | 1 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/hosts/dell-5590/nixos/services.nix b/hosts/dell-5590/nixos/services.nix index ce33e36..243ccc7 100644 --- a/hosts/dell-5590/nixos/services.nix +++ b/hosts/dell-5590/nixos/services.nix @@ -1,18 +1,26 @@ { config, pkgs, ... }: { - services.printing.enable = true; - services.printing.drivers = [ pkgs.brlaser ]; - services.blueman.enable = true; # SERVICES services = { + printing = { + enable = true; + drivers = [ pkgs.brlaser ]; + }; + + blueman = { + enable = true; + }; clamav = { daemon.enable = true; updater.enable = true; }; - ntp.enable = true; + ntp = { + enable = true; + }; + tlp = { enable = true; settings = { @@ -59,7 +67,6 @@ time = 10; locker = "${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png"; }; - displayManager.defaultSession = "none+i3"; layout = "fr"; xkbOptions = "eurosign:e"; diff --git a/hosts/dell-5590/nixpkgs/packages.nix b/hosts/dell-5590/nixpkgs/packages.nix index 0d3dc34..5aa1050 100644 --- a/hosts/dell-5590/nixpkgs/packages.nix +++ b/hosts/dell-5590/nixpkgs/packages.nix @@ -53,5 +53,6 @@ unar # like 7z nmap udiskie + libnotify ]; }