aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-04-19 11:44:24 +0100
committerAkshay <[email protected]>2023-04-19 11:44:24 +0100
commit8b1b7f44a516299446692494746d4a6cfacb0a01 (patch)
tree5418234ab875e8aaf54c3477e48e3c5fee800d18
parent8151e88775c3f2b7e1de1b90b825ed68658629b0 (diff)
.
-rw-r--r--flake.nix1
-rw-r--r--home.nix5
-rw-r--r--hosts/myrtle/configuration.nix11
-rw-r--r--hosts/myrtle/hardware-configuration.nix9
-rw-r--r--scripts/battery.nix2
-rw-r--r--theme/default.nix2
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 @@
94 _module.args.theme = import ./theme; 94 _module.args.theme = import ./theme;
95 }; 95 };
96 } 96 }
97 nixos-hardware.nixosModules.asus-battery
97 ]; 98 ];
98 }; 99 };
99 }; 100 };
diff --git a/home.nix b/home.nix
index cec0d7a..c5a3edd 100644
--- a/home.nix
+++ b/home.nix
@@ -47,8 +47,7 @@
47 libnotify 47 libnotify
48 inotify-tools 48 inotify-tools
49 pavucontrol 49 pavucontrol
50 signaldctl 50 signal-desktop
51
52 51
53 # sync 52 # sync
54 rtorrent 53 rtorrent
@@ -90,6 +89,8 @@
90 # work 89 # work
91 slack 90 slack
92 zoom-us 91 zoom-us
92 awscli2
93 kubectl
93 94
94 ] ++ (import ./scripts { inherit pkgs; }); 95 ] ++ (import ./scripts { inherit pkgs; });
95 96
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 @@
115 }; 115 };
116 }; 116 };
117 sensor.iio.enable = true; # enable screen autorotate 117 sensor.iio.enable = true; # enable screen autorotate
118 asus.battery = {
119 chargeUpto = 80;
120 };
118 }; 121 };
119 122
120 powerManagement = { 123 powerManagement = {
@@ -144,7 +147,6 @@
144 147
145 openssh = { 148 openssh = {
146 enable = true; 149 enable = true;
147 forwardX11 = true;
148 allowSFTP = true; 150 allowSFTP = true;
149 }; 151 };
150 152
@@ -167,10 +169,14 @@
167 }; 169 };
168 170
169 touchegg.enable = true; 171 touchegg.enable = true;
172
170 signald = { 173 signald = {
171 enable = true; 174 enable = true;
172 group = "signald"; 175 group = "signald";
173 }; 176 };
177
178 auto-cpufreq.enable = true;
179
174 }; 180 };
175 181
176 systemd.sleep.extraConfig = '' 182 systemd.sleep.extraConfig = ''
@@ -178,6 +184,9 @@
178 ''; 184 '';
179 185
180 virtualisation.docker.enable = true; 186 virtualisation.docker.enable = true;
187 virtualisation.virtualbox.host.enable = true;
188 users.extraGroups.vboxusers.members = [ "np" ];
189
181 190
182 users.users.np = { 191 users.users.np = {
183 isNormalUser = true; 192 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 @@
5 5
6{ 6{
7 imports = 7 imports =
8 [ (modulesPath + "/installer/scan/not-detected.nix") 8 [
9 (modulesPath + "/installer/scan/not-detected.nix")
9 ]; 10 ];
10 11
11 boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 12 boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
@@ -14,12 +15,14 @@
14 boot.extraModulePackages = [ ]; 15 boot.extraModulePackages = [ ];
15 16
16 fileSystems."/" = 17 fileSystems."/" =
17 { device = "/dev/disk/by-uuid/59c9ddc2-b914-414b-9e7e-74b405cbf3f6"; 18 {
19 device = "/dev/disk/by-uuid/59c9ddc2-b914-414b-9e7e-74b405cbf3f6";
18 fsType = "ext4"; 20 fsType = "ext4";
19 }; 21 };
20 22
21 fileSystems."/boot" = 23 fileSystems."/boot" =
22 { device = "/dev/disk/by-uuid/7004-C5AE"; 24 {
25 device = "/dev/disk/by-uuid/7004-C5AE";
23 fsType = "vfat"; 26 fsType = "vfat";
24 }; 27 };
25 28
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 @@
2 2
3let 3let
4 name = "bat"; 4 name = "bat";
5 symbol = "❤️"; 5 symbol = "·";
6in 6in
7pkgs.writeScriptBin name 7pkgs.writeScriptBin name
8 '' 8 ''
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
3 night = import ./night.nix; 3 night = import ./night.nix;
4 gruvbox = import ./gruvbox.nix; 4 gruvbox = import ./gruvbox.nix;
5in 5in
6day 6night