mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-31 03:24:19 +00:00
Compare commits
4 Commits
f88d999429
...
8681caca01
| Author | SHA1 | Date | |
|---|---|---|---|
| 8681caca01 | |||
| 80e3eccd32 | |||
| 3ceb749239 | |||
| b16e7664b0 |
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
# Host Groups
|
# Host Groups
|
||||||
../../modules/host-groups/cluster.nix
|
../../modules/host-groups/cluster.nix
|
||||||
|
|
||||||
|
# Application Groups
|
||||||
|
../../modules/application-groups/k3s-primary.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "cap-clust-01";
|
networking.hostName = "cap-clust-01";
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
# Host Groups
|
# Host Groups
|
||||||
../../modules/host-groups/cluster.nix
|
../../modules/host-groups/cluster.nix
|
||||||
|
|
||||||
|
# Application Groups
|
||||||
|
../../modules/application-groups/k3s-secondary.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "cap-clust-02";
|
networking.hostName = "cap-clust-02";
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
# Host Groups
|
# Host Groups
|
||||||
../../modules/host-groups/cluster.nix
|
../../modules/host-groups/cluster.nix
|
||||||
|
|
||||||
|
# Application Groups
|
||||||
|
../../modules/application-groups/k3s-primary.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "cap-clust-03";
|
networking.hostName = "cap-clust-03";
|
||||||
|
|||||||
9
modules/application-groups/k3s-primary.nix
Normal file
9
modules/application-groups/k3s-primary.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server";
|
||||||
|
token = "forinitialtestingonly";
|
||||||
|
clusterInit = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/application-groups/k3s-secondary.nix
Normal file
9
modules/application-groups/k3s-secondary.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server"; # Or "agent" for worker only nodes
|
||||||
|
token = "forinitialtestingonly";
|
||||||
|
serverAddr = "https://cap-clust-01:6443";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
imagemagick
|
imagemagick
|
||||||
iotop
|
iotop
|
||||||
jq
|
jq
|
||||||
|
k3s
|
||||||
kdePackages.qt6ct
|
kdePackages.qt6ct
|
||||||
killall
|
killall
|
||||||
kitty
|
kitty
|
||||||
|
|||||||
@@ -7,3 +7,6 @@ source = ~/.config/hypr/hyprland-common.conf
|
|||||||
# Application launch
|
# Application launch
|
||||||
exec-once = brightnessctl -sd platform::kbd_backlight set 1
|
exec-once = brightnessctl -sd platform::kbd_backlight set 1
|
||||||
exec-once = brightnessctl -s set 30%
|
exec-once = brightnessctl -s set 30%
|
||||||
|
|
||||||
|
# Privacy
|
||||||
|
exec-once = sleep 10 && ls /dev/video1 &> /dev/null && notify-send "Laptop Webcam Enabled" "Please disable if not being used." -t 20000
|
||||||
@@ -5,16 +5,17 @@ profile builtin_only {
|
|||||||
}
|
}
|
||||||
|
|
||||||
profile bedroom_desk {
|
profile bedroom_desk {
|
||||||
# Top left to right
|
##### Top left to right
|
||||||
output "Dell Inc. DELL P2411H F8NDP11G0DVU" enable position 0,1280
|
output "Dell Inc. DELL P2411H F8NDP11G0DVU" enable position 0,1280
|
||||||
output "Acer Technologies CB292CU 2217018D42410" enable position 1920,0 transform 90
|
output "Acer Technologies CB292CU 2217018D42410" enable position 1920,0 transform 90
|
||||||
output "Dell Inc. DELL P2411H F8NDP097114U" enable position 3000,1280
|
output "Dell Inc. DELL P2411H F8NDP097114U" enable position 3000,1280
|
||||||
|
|
||||||
# Bottom left to right
|
##### Bottom left to right
|
||||||
output "Aculab Ltd Digital Unknown" enable transform 270 position 0,2360
|
output "Aculab Ltd Digital Unknown" enable transform 270 position 0,2360
|
||||||
|
# Primary monitor, which wayland doesn't have a concept of
|
||||||
output "Hewlett Packard HP Z27n CNK7311DRR" enable position 1440,2560
|
output "Hewlett Packard HP Z27n CNK7311DRR" enable position 1440,2560
|
||||||
output "Aculab Ltd QHD270 Unknown" enable transform 90 position 4000,2360
|
output "Aculab Ltd QHD270 Unknown" enable transform 90 position 4000,2360
|
||||||
|
|
||||||
# Far bottom right (laptop itself)
|
##### Far bottom right (laptop itself)
|
||||||
output "BOE 0x0A9B Unknown" enable position 5440,2360 adaptive_sync on
|
output "BOE 0x0A9B Unknown" enable position 5440,2360 adaptive_sync on
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user