diff options
author | Akshay <[email protected]> | 2023-01-26 12:33:27 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2023-01-26 12:33:27 +0000 |
commit | cec4fcabdab7a1bd137130111e8ee6567686815c (patch) | |
tree | 76fadfa47e41f0ce4e211367cfe07f2367e22ec4 | |
parent | e6ee8f7a83586d11f55a03f1b7cec9d14311ddf8 (diff) |
tweaks
-rw-r--r-- | home.nix | 2 | ||||
-rw-r--r-- | hosts/myrtle/configuration.nix | 18 | ||||
-rw-r--r-- | scripts/default.nix | 12 | ||||
-rw-r--r-- | services/default.nix | 2 | ||||
-rw-r--r-- | services/picom.nix | 2 |
5 files changed, 13 insertions, 23 deletions
@@ -62,7 +62,7 @@ | |||
62 | 62 | ||
63 | # input | 63 | # input |
64 | xinput_calibrator | 64 | xinput_calibrator |
65 | touchegg | 65 | libinput |
66 | 66 | ||
67 | # meta | 67 | # meta |
68 | nixpkgs-review | 68 | nixpkgs-review |
diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 468f64a..c86efd4 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix | |||
@@ -11,20 +11,16 @@ | |||
11 | boot.loader.efi.canTouchEfiVariables = true; | 11 | boot.loader.efi.canTouchEfiVariables = true; |
12 | boot.kernelPackages = pkgs.linuxPackages_latest; | 12 | boot.kernelPackages = pkgs.linuxPackages_latest; |
13 | boot.blacklistedKernelModules = [ "nouveau" ]; | 13 | boot.blacklistedKernelModules = [ "nouveau" ]; |
14 | boot.kernelParams = [ "module_blacklist=i915" ]; | 14 | boot.kernelParams = [ |
15 | "module_blacklist=i915" | ||
16 | # "intel_pstate=disable" | ||
17 | ]; | ||
15 | 18 | ||
16 | networking = { | 19 | networking = { |
17 | hostName = "myrtle"; | 20 | hostName = "myrtle"; |
18 | wireless = { | 21 | wireless = { |
19 | iwd.enable = true; | 22 | iwd.enable = true; |
20 | interfaces = [ "wlan0" ]; | 23 | interfaces = [ "wlan0" ]; |
21 | environmentFile = "/home/np/.wireless.env"; | ||
22 | networks = { | ||
23 | Sanic.psk = "@PSK_SANI@"; | ||
24 | Gopalan.psk = "@PSK_GOPA@"; | ||
25 | Srividhya.psk = "@PSK_SRIV@"; | ||
26 | sage.psk = "@PSK_SAGE@"; | ||
27 | }; | ||
28 | }; | 24 | }; |
29 | }; | 25 | }; |
30 | 26 | ||
@@ -125,7 +121,6 @@ | |||
125 | ''; | 121 | ''; |
126 | 122 | ||
127 | auto-cpufreq.enable = true; | 123 | auto-cpufreq.enable = true; |
128 | thermald.enable = true; | ||
129 | batteryNotifier = { | 124 | batteryNotifier = { |
130 | enable = true; | 125 | enable = true; |
131 | notifyCapacity = 20; | 126 | notifyCapacity = 20; |
@@ -134,11 +129,6 @@ | |||
134 | touchegg.enable = true; | 129 | touchegg.enable = true; |
135 | }; | 130 | }; |
136 | 131 | ||
137 | powerManagement = { | ||
138 | enable = true; | ||
139 | powertop.enable = true; | ||
140 | }; | ||
141 | |||
142 | systemd.sleep.extraConfig = '' | 132 | systemd.sleep.extraConfig = '' |
143 | HibernateMode=shutdown | 133 | HibernateMode=shutdown |
144 | ''; | 134 | ''; |
diff --git a/scripts/default.nix b/scripts/default.nix index 72d0235..1c57566 100644 --- a/scripts/default.nix +++ b/scripts/default.nix | |||
@@ -60,19 +60,19 @@ let | |||
60 | fi | 60 | fi |
61 | ''; | 61 | ''; |
62 | 62 | ||
63 | touchscreen = "ELAN9008:00 04F3:2ED6"; | 63 | touchscreen = 21; |
64 | stylus = "ELAN9008:00 04F3:2ED6 Stylus Pen (0)"; | 64 | stylus = 15; |
65 | portait-transform = builtins.toString [ 0 (-1) 1 1 0 0 0 0 1 ]; | 65 | portait-transform = builtins.toString [ 0 (-1) 1 1 0 0 0 0 1 ]; |
66 | landscape-transform = builtins.toString [ 0 0 0 0 0 0 0 0 0 ]; | 66 | landscape-transform = builtins.toString [ 0 0 0 0 0 0 0 0 0 ]; |
67 | portrait = pkgs.writeScriptBin "portrait" '' | 67 | portrait = pkgs.writeScriptBin "portrait" '' |
68 | ${pkgs.xorg.xrandr}/bin/xrandr -o left | 68 | ${pkgs.xorg.xrandr}/bin/xrandr -o left |
69 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${portait-transform} | 69 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString touchscreen} --type=float "Coordinate Transformation Matrix" ${portait-transform} |
70 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${portait-transform} | 70 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString stylus} --type=float "Coordinate Transformation Matrix" ${portait-transform} |
71 | ''; | 71 | ''; |
72 | landscape = pkgs.writeScriptBin "landscape" '' | 72 | landscape = pkgs.writeScriptBin "landscape" '' |
73 | ${pkgs.xorg.xrandr}/bin/xrandr -o normal | 73 | ${pkgs.xorg.xrandr}/bin/xrandr -o normal |
74 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${landscape-transform} | 74 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString touchscreen} --type=float "Coordinate Transformation Matrix" ${landscape-transform} |
75 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${landscape-transform} | 75 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString stylus} --type=float "Coordinate Transformation Matrix" ${landscape-transform} |
76 | ''; | 76 | ''; |
77 | 77 | ||
78 | in | 78 | in |
diff --git a/services/default.nix b/services/default.nix index b2a39bb..2bce0e4 100644 --- a/services/default.nix +++ b/services/default.nix | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | imports = [ | 9 | imports = [ |
10 | ./dunst.nix | 10 | ./dunst.nix |
11 | ./picom.nix | 11 | # ./picom.nix |
12 | ./redshift.nix | 12 | ./redshift.nix |
13 | ./sxhkd.nix | 13 | ./sxhkd.nix |
14 | # ./mbsync.nix | 14 | # ./mbsync.nix |
diff --git a/services/picom.nix b/services/picom.nix index d298424..07f8f58 100644 --- a/services/picom.nix +++ b/services/picom.nix | |||
@@ -6,7 +6,7 @@ | |||
6 | { | 6 | { |
7 | services.picom = { | 7 | services.picom = { |
8 | enable = true; | 8 | enable = true; |
9 | backend = "glx"; | 9 | backend = "xrender"; |
10 | fade = true; | 10 | fade = true; |
11 | fadeDelta = 10; | 11 | fadeDelta = 10; |
12 | fadeSteps = [ 0.04 0.04 ]; | 12 | fadeSteps = [ 0.04 0.04 ]; |