From 8b1b7f44a516299446692494746d4a6cfacb0a01 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 19 Apr 2023 16:14:24 +0530 Subject: . --- flake.nix | 1 + home.nix | 5 +++-- hosts/myrtle/configuration.nix | 11 ++++++++++- hosts/myrtle/hardware-configuration.nix | 9 ++++++--- scripts/battery.nix | 2 +- theme/default.nix | 2 +- 6 files changed, 22 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 6a8b5d8..71f80df 100644 --- a/flake.nix +++ b/flake.nix @@ -94,6 +94,7 @@ _module.args.theme = import ./theme; }; } + nixos-hardware.nixosModules.asus-battery ]; }; }; diff --git a/home.nix b/home.nix index cec0d7a..c5a3edd 100644 --- a/home.nix +++ b/home.nix @@ -47,8 +47,7 @@ libnotify inotify-tools pavucontrol - signaldctl - + signal-desktop # sync rtorrent @@ -90,6 +89,8 @@ # work slack zoom-us + awscli2 + kubectl ] ++ (import ./scripts { inherit pkgs; }); diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 90d94f8..4212556 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -115,6 +115,9 @@ }; }; sensor.iio.enable = true; # enable screen autorotate + asus.battery = { + chargeUpto = 80; + }; }; powerManagement = { @@ -144,7 +147,6 @@ openssh = { enable = true; - forwardX11 = true; allowSFTP = true; }; @@ -167,10 +169,14 @@ }; touchegg.enable = true; + signald = { enable = true; group = "signald"; }; + + auto-cpufreq.enable = true; + }; systemd.sleep.extraConfig = '' @@ -178,6 +184,9 @@ ''; virtualisation.docker.enable = true; + virtualisation.virtualbox.host.enable = true; + users.extraGroups.vboxusers.members = [ "np" ]; + users.users.np = { isNormalUser = true; diff --git a/hosts/myrtle/hardware-configuration.nix b/hosts/myrtle/hardware-configuration.nix index 86638d2..099052a 100644 --- a/hosts/myrtle/hardware-configuration.nix +++ b/hosts/myrtle/hardware-configuration.nix @@ -5,7 +5,8 @@ { imports = - [ (modulesPath + "/installer/scan/not-detected.nix") + [ + (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; @@ -14,12 +15,14 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/59c9ddc2-b914-414b-9e7e-74b405cbf3f6"; + { + device = "/dev/disk/by-uuid/59c9ddc2-b914-414b-9e7e-74b405cbf3f6"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/7004-C5AE"; + { + device = "/dev/disk/by-uuid/7004-C5AE"; fsType = "vfat"; }; diff --git a/scripts/battery.nix b/scripts/battery.nix index 149d8a3..87b6cff 100644 --- a/scripts/battery.nix +++ b/scripts/battery.nix @@ -2,7 +2,7 @@ let name = "bat"; - symbol = "❤️"; + symbol = "·"; in pkgs.writeScriptBin name '' diff --git a/theme/default.nix b/theme/default.nix index 7c67057..b3af086 100644 --- a/theme/default.nix +++ b/theme/default.nix @@ -3,4 +3,4 @@ let night = import ./night.nix; gruvbox = import ./gruvbox.nix; in -day +night -- cgit v1.2.3