Skip to content

Commit fbba16c

Browse files
l2
1 parent 7cf75f7 commit fbba16c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4747
-22
lines changed

desktop/l/configuration.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,15 @@
146146
# jack.enable = true;
147147
};
148148

149-
services.lldpd.enable = true;
150149
services.openssh.enable = true;
150+
programs.ssh.extraConfig = ''
151+
Host hp4.home
152+
PubkeyAcceptedKeyTypes ssh-ed25519
153+
ServerAliveInterval 60
154+
IPQoS throughput
155+
'';
156+
157+
services.lldpd.enable = true;
151158
services.timesyncd.enable = true;
152159
services.fstrim.enable = true;
153160
services.avahi = {

desktop/l/distributed-builds.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# latops/t/distributed-builds.nix
33
#
44
# https://nix.dev/tutorials/nixos/distributed-builds-setup.html#set-up-distributed-builds
5+
# https://docs.nixbuild.net/getting-started/#quick-nixos-configuration
56
{ pkgs, ... }:
67
{
78
nix.distributedBuilds = true;
@@ -13,7 +14,15 @@
1314
sshUser = "remotebuild";
1415
sshKey = "/root/.ssh/remotebuild";
1516
system = pkgs.stdenv.hostPlatform.system;
17+
maxJobs = 100;
1618
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
1719
}
1820
];
19-
}
21+
}
22+
23+
# https://docs.nixbuild.net/getting-started/#your-first-build
24+
# nix-build \
25+
# --max-jobs 0 \
26+
# --builders "ssh://hp4 x86_64-linux - 100 1 big-parallel,benchmark" \
27+
# -I nixpkgs=channel:nixos-20.03 \
28+
# --expr '((import <nixpkgs> {}).runCommand "test${toString builtins.currentTime}" {} "echo Hello nixbuild.net; touch $out")'

desktop/l/home.nix

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,21 @@
303303
# Ghostty configuration
304304
programs.ghostty = {
305305
enable = true;
306-
settings = {
307-
scrollback-sidebar = true;
308-
scrollback-sidebar-width = 20;
309-
scrollback-sidebar-position = "right";
310-
};
306+
# settings = {
307+
# settings doesn't work
311308
};
309+
# https://ghostty.zerebos.com/app/import-export
310+
# no scorllback limit
311+
# https://github.com/ghostty-org/ghostty/issues/111
312+
xdg.configFile."ghostty/config.toml".text = ''
313+
term = xterm-256color
314+
scrollback-limit = 10000001
315+
image-storage-limit = 320000001
316+
clipboard-write = allow
317+
window-subtitle = working-directory
318+
background-opacity = 0.91
319+
background-blur = 20
320+
'';
312321

313322
home = {
314323
username = "das";
@@ -824,21 +833,6 @@
824833
}
825834
'';
826835
};
827-
# https://mynixos.com/home-manager/options/programs.ghostty
828-
home.file.".config/ghostty/ghostty.toml" = {
829-
target = ".config/ghostty/ghostty.toml";
830-
text = ''
831-
[window]
832-
# Whether to show the scrollback sidebar.
833-
sidebar = true
834-
835-
# The width of the scrollback sidebar.
836-
sidebar_width = 10
837-
838-
# Whether to show the scrollback sidebar on the left or right.
839-
sidebar_position = "right"
840-
'';
841-
};
842836
# https://github.com/colemickens/nixcfg/blob/1915d408ea28a5b7279f94df7a982dbf2cf692ef/mixins/ghostty.nix#L19
843837

844838
# set at flake.nix level

desktop/l2/Makefile

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#
2+
# nixos/laptops/l/Makefile
3+
#
4+
EXPECTED_HOSTNAME := l2
5+
6+
ACTUAL_HOSTNAME := $(shell hostname)
7+
8+
all: check_hostname rebuild
9+
10+
check_hostname:
11+
ifeq ($(ACTUAL_HOSTNAME),$(EXPECTED_HOSTNAME))
12+
@echo "Hostnames match: $(ACTUAL_HOSTNAME)"
13+
else
14+
@echo "Error: Hostname does not match. Expected: $(EXPECTED_HOSTNAME), Got: $(ACTUAL_HOSTNAME)"
15+
@exit 1
16+
endif
17+
18+
rebuild:
19+
sudo nixos-rebuild switch --flake .
20+
21+
rebuild_t:
22+
sudo nixos-rebuild switch --flake .#t
23+
24+
#https://nixos.org/manual/nixos/unstable/index.html#sec-nix-network-issues
25+
#nixos-rebuild switch --option binary-caches http://my-cache.example.org/
26+
27+
impure:
28+
sudo nixos-rebuild switch --impure --flake .
29+
30+
rebuild_trace:
31+
sudo nixos-rebuild switch --show-trace --flake .
32+
33+
update:
34+
sudo nix flake update;
35+
36+
rebuild_old:
37+
# sudo cp ./flake.nix /etc/nixos/
38+
# sudo cp ./flake.lock /etc/nixos/
39+
# sudo cp ../../modules/* /etc/nixos/
40+
# sudo cp ./configuration.nix /etc/nixos/
41+
# #sudo cp ./home-manager.nix /etc/nixos/
42+
# sudo cp ./home.nix /etc/nixos/
43+
# sudo cp ./prometheus.nix /etc/nixos/
44+
# sudo cp ./*.nix /etc/nixos/
45+
# sudo nix-channel --update
46+
# sudo nixos-rebuild switch
47+
#sudo cp ./* /etc/nixos/
48+
sudo nix flake update;
49+
#sudo nix-channel --update;
50+
sudo nixos-rebuild switch --flake .
51+
52+
update_oldm.:
53+
sudo nix-channel --update
54+
sudo nixos-rebuild switch
55+
#nix-shell -p vim
56+
57+
restart_display_manager:
58+
sudo systemctl restart display-manager.service
59+
60+
#ls -l /run/opengl-driver/lib/gbm/
61+
#readlink /run/opengl-driver/lib/gbm/dri_gbm.so
62+
#glxinfo | grep -i 'renderer'
63+
64+
#journalctl -b | grep -Ei 'X.*fatal|gdm|wayland|mesa|amdgpu' --no-pager
65+
#less /var/log/Xorg.0.log
66+
67+
#nix-shell -p mesa-demos
68+
#glxinfo | grep -i opengl
69+
70+
# cat configuration.nix | grep -A 20 "hardware.graphics ="
71+
72+
# end

0 commit comments

Comments
 (0)