From 9f5882ea760fcbe9c88290a40486ff0c3ddce626 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Mon, 17 Jul 2023 10:08:51 +0300 Subject: [PATCH] Add telegram and lm_sensors --- machines/stella/hardware.nix | 9 ++++++++- roles/graphical.nix | 4 ++++ roles/laptop.nix | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/machines/stella/hardware.nix b/machines/stella/hardware.nix index 93a7e30..3339db0 100644 --- a/machines/stella/hardware.nix +++ b/machines/stella/hardware.nix @@ -8,9 +8,16 @@ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; + boot.kernelModules = [ "kvm-amd" "nct6775" ]; boot.extraModulePackages = [ ]; + + environment.etc = { + "sysconfig/lm_sensors".text = '' + HWMON_MODULES="lm75" + ''; + }; + fileSystems."/" = { device = "/dev/disk/by-uuid/e9d47776-8f25-490b-9ea3-ee80ab9d6110"; fsType = "btrfs"; diff --git a/roles/graphical.nix b/roles/graphical.nix index f515914..e08219b 100644 --- a/roles/graphical.nix +++ b/roles/graphical.nix @@ -11,10 +11,12 @@ ffmpeg cinnamon.mint-y-icons usbmuxd + telegram-desktop ]; services.fwupd.enable = true; services.greetd = { enable = true; + vt = 7; settings = { default_session = { command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway"; @@ -40,6 +42,7 @@ mako pulseaudio brightnessctl + wdisplays ]; wrapperFeatures.gtk = true; }; @@ -61,5 +64,6 @@ noto-fonts-cjk noto-fonts-emoji jetbrains-mono + font-awesome ]; } \ No newline at end of file diff --git a/roles/laptop.nix b/roles/laptop.nix index f8ca64f..58c8eef 100644 --- a/roles/laptop.nix +++ b/roles/laptop.nix @@ -3,6 +3,7 @@ { environment.systemPackages = with pkgs; [ powertop + lm_sensors ]; services.tlp.enable = true; services.upower.enable = true;