summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/home-manager/btop.nix1
-rw-r--r--modules/home-manager/waybar.nix16
-rw-r--r--modules/nixos/remote-build.nix20
-rw-r--r--modules/nixos/system-packages.nix1
-rw-r--r--modules/nixos/tailscale.nix1
-rw-r--r--modules/users/defin.nix1
6 files changed, 31 insertions, 9 deletions
diff --git a/modules/home-manager/btop.nix b/modules/home-manager/btop.nix
index 894ff2e..352d3bb 100644
--- a/modules/home-manager/btop.nix
+++ b/modules/home-manager/btop.nix
@@ -8,6 +8,7 @@
color_theme = "catppuccin_mocha";
theme_background = false; # make btop transparent
vim_keys = true;
+ proc_aggregate = true; # aggregate subprocess resources in tree view
};
};
}
diff --git a/modules/home-manager/waybar.nix b/modules/home-manager/waybar.nix
index c7f977e..74aa144 100644
--- a/modules/home-manager/waybar.nix
+++ b/modules/home-manager/waybar.nix
@@ -9,7 +9,7 @@
* {
font-family: FantasqueSansMono Nerd Font;
- font-size: 17px;
+ font-size: 14px;
min-height: 0;
}
@@ -130,7 +130,7 @@
position = "top";
height = 48;
modules-left = [ "hyprland/workspaces" ];
- modules-center = [ "clock" "backlight/slider" ];
+ modules-center = [ "clock" ];
modules-right = [ "pulseaudio" "bluetooth" "network" "battery" "cpu" "temperature" "memory" "idle_inhibitor" "tray" ];
"tray" = {
@@ -192,12 +192,12 @@
format-disconnected = "Disconnected ⚠";
format-alt = "{ifname}: {ipaddr}/{cidr}";
};
- "backlight/slider" = {
- min = 1;
- max = 100;
- orientation = "horizontal";
- # device = "intel_backlight";
- };
+ # "backlight/slider" = {
+ # min = 1;
+ # max = 100;
+ # orientation = "horizontal";
+ # # device = "intel_backlight";
+ # };
"clock" = {
format = "{:%H:%M}  ";
format-alt = "{:%A, %B %d, %Y (%R)}  ";
diff --git a/modules/nixos/remote-build.nix b/modules/nixos/remote-build.nix
new file mode 100644
index 0000000..79da57e
--- /dev/null
+++ b/modules/nixos/remote-build.nix
@@ -0,0 +1,20 @@
+{ config, ... } : {
+ nix.distributedBuilds = true;
+ # nix.settings.builders-use-subsituters = true;
+ nix.buildMachines = [
+ {
+ hostName = "doretta";
+ systems = [ "x86_64-linux" "aarch64-linux"];
+ supportedFeatures = [
+ "nixos-test"
+ "benchmark"
+ "big-parallel"
+ "llvm"
+ ];
+ maxJobs = 2; # could be higher but slow internet
+ speedFactor = 1;
+ sshKey = "/root/.ssh/nixremote";
+ sshUser = "nixremote";
+ }
+ ];
+}
diff --git a/modules/nixos/system-packages.nix b/modules/nixos/system-packages.nix
index 07696ae..be78370 100644
--- a/modules/nixos/system-packages.nix
+++ b/modules/nixos/system-packages.nix
@@ -11,6 +11,7 @@
nvd
unzip
git
+ ack #like git-grep but works outside git repos
wl-clipboard
pciutils
usbutils
diff --git a/modules/nixos/tailscale.nix b/modules/nixos/tailscale.nix
index e3635fd..8fa49be 100644
--- a/modules/nixos/tailscale.nix
+++ b/modules/nixos/tailscale.nix
@@ -5,6 +5,7 @@
"--login-server https://bosco.myrmexia.xyz"
"--operator defin"
];
+ extraSetFlags = ["--netfilter-mode=nodivert"];
};
systemd.services.tailscaled.after = [ "systemd-networkd-wait-online.service" ];
networking.firewall = {
diff --git a/modules/users/defin.nix b/modules/users/defin.nix
index 9cd1548..3b26ed2 100644
--- a/modules/users/defin.nix
+++ b/modules/users/defin.nix
@@ -25,7 +25,6 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5CATqAUsBWLTIaqtdAS/EO3L/04NwKEmnv7D68vO+a defin@biski"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILuW75N5K0/83bOgsB/yymgIHoQgaaAJjW9MMDG9s/2p defin@picast2"
# keys for remote build
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPY7aJCzJmN0XYdf8Ehp/OY71y8WudmW7sWA9Nb+pncL root@doretta"
];
};
};