Compare commits

...

3 commits

Author SHA1 Message Date
00223ea675
Enable plantuml server, DHCP on enp5s0f1 2024-12-18 19:31:55 +01:00
1f0b100e86
waybar: Add MPRIS module 2024-12-18 19:29:19 +01:00
6636950cca
Update: flake.lock
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/d32f2d1750d61a476a236526b725ec5a32e16342?narHash=sha256-OIitVU%2BIstPbX/NWn2jLF%2B/sT9dVKcO2FKeRAzlyX6c%3D' (2024-12-13)
  → 'github:nix-community/disko/a08bfe06b39e94eec98dd089a2c1b18af01fef19?narHash=sha256-b7G8oFp0Nj01BYUJ6ENC9Qf/HsYAIZvN9k/p0Kg/PFU%3D' (2024-12-16)
• Updated input 'home-manager':
    'github:nix-community/home-manager/66c5d8b62818ec4c1edb3e941f55ef78df8141a8?narHash=sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4%3D' (2024-12-13)
  → 'github:nix-community/home-manager/83ecd50915a09dca928971139d3a102377a8d242?narHash=sha256-wNX3hsScqDdqKWOO87wETUEi7a/QlPVgpC/Lh5rFOuA%3D' (2024-12-16)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/cf737e2eba82b603f54f71b10cb8fd09d22ce3f5?narHash=sha256-%2BjjPup/ByS0LEVIrBbt7FnGugJgLeG9oc%2BivFASYn2U%3D' (2024-12-10)
  → 'github:NixOS/nixos-hardware/b12e314726a4226298fe82776b4baeaa7bcf3dcd?narHash=sha256-mfv%2BJ/vO4nqmIOlq8Y1rRW8hVsGH3M%2BI2ESMjhuebDs%3D' (2024-12-16)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/5d67ea6b4b63378b9c13be21e2ec9d1afc921713?narHash=sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g%3D' (2024-12-11)
  → 'github:nixos/nixpkgs/3566ab7246670a43abd2ffa913cc62dad9cdf7d5?narHash=sha256-AKU6qqskl0yf2%2BJdRdD0cfxX4b9x3KKV5RqA6wijmPM%3D' (2024-12-13)
• Updated input 'pre-commit-hooks':
    'github:cachix/git-hooks.nix/4c8e75efbbdcc6f9203f64b1f21f8a55d2285264?narHash=sha256-3Lzk%2B7QyX8v60%2Bkm26D3dln7NMSA13vW%2BKYTkMkds6Q%3D' (2024-12-15)
  → 'github:cachix/git-hooks.nix/0ddd26d0925f618c3a5d85a4fa5eb1e23a09491d?narHash=sha256-nzE5UbJ41aPEKf8R2ZFYtLkqPmF7EIUbNEdHMBLg0Ig%3D' (2024-12-17)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/150fbc8aa2bc501041810bbc1dbfe73694a861be?narHash=sha256-zsp0Mz8VgyIAnU8UhP/YT1g%2Bzlsl%2BNIJTBMAbY%2BRifQ%3D' (2024-12-15)
  → 'github:oxalica/rust-overlay/b2e385f8e5c1d7c0d9ce738d650955c2e94555ae?narHash=sha256-dKBBZr2pw7KDI/7GeiN5qPccqqtvnK2jqAMcMo4rVvU%3D' (2024-12-18)
2024-12-18 09:29:02 +01:00
4 changed files with 53 additions and 32 deletions

View file

@ -150,11 +150,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734088167, "lastModified": 1734343412,
"narHash": "sha256-OIitVU+IstPbX/NWn2jLF+/sT9dVKcO2FKeRAzlyX6c=", "narHash": "sha256-b7G8oFp0Nj01BYUJ6ENC9Qf/HsYAIZvN9k/p0Kg/PFU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "d32f2d1750d61a476a236526b725ec5a32e16342", "rev": "a08bfe06b39e94eec98dd089a2c1b18af01fef19",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -430,11 +430,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734093295, "lastModified": 1734344598,
"narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=", "narHash": "sha256-wNX3hsScqDdqKWOO87wETUEi7a/QlPVgpC/Lh5rFOuA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8", "rev": "83ecd50915a09dca928971139d3a102377a8d242",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -551,11 +551,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1733861262, "lastModified": 1734352517,
"narHash": "sha256-+jjPup/ByS0LEVIrBbt7FnGugJgLeG9oc+ivFASYn2U=", "narHash": "sha256-mfv+J/vO4nqmIOlq8Y1rRW8hVsGH3M+I2ESMjhuebDs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "cf737e2eba82b603f54f71b10cb8fd09d22ce3f5", "rev": "b12e314726a4226298fe82776b4baeaa7bcf3dcd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -566,11 +566,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1733940404, "lastModified": 1734119587,
"narHash": "sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g=", "narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5d67ea6b4b63378b9c13be21e2ec9d1afc921713", "rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -694,11 +694,11 @@
"nixpkgs-stable": "nixpkgs-stable_3" "nixpkgs-stable": "nixpkgs-stable_3"
}, },
"locked": { "locked": {
"lastModified": 1734261738, "lastModified": 1734425854,
"narHash": "sha256-3Lzk+7QyX8v60+km26D3dln7NMSA13vW+KYTkMkds6Q=", "narHash": "sha256-nzE5UbJ41aPEKf8R2ZFYtLkqPmF7EIUbNEdHMBLg0Ig=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "4c8e75efbbdcc6f9203f64b1f21f8a55d2285264", "rev": "0ddd26d0925f618c3a5d85a4fa5eb1e23a09491d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -742,11 +742,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734230139, "lastModified": 1734489114,
"narHash": "sha256-zsp0Mz8VgyIAnU8UhP/YT1g+zlsl+NIJTBMAbY+RifQ=", "narHash": "sha256-dKBBZr2pw7KDI/7GeiN5qPccqqtvnK2jqAMcMo4rVvU=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "150fbc8aa2bc501041810bbc1dbfe73694a861be", "rev": "b2e385f8e5c1d7c0d9ce738d650955c2e94555ae",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -49,7 +49,8 @@ in
"sway/workspaces" "sway/workspaces"
"sway/mode" "sway/mode"
] ]
++ lib.optional (cfg.profile == "home") "custom/now_playing"; ++ lib.optional (cfg.profile == "home") "custom/now_playing"
++ lib.optional (cfg.profile == "work") "mpris";
modules-center = (lib.optional cfg.sway "sway/window") ++ (lib.optional cfg.river "river/window"); modules-center = (lib.optional cfg.sway "sway/window") ++ (lib.optional cfg.river "river/window");
@ -78,7 +79,7 @@ in
tooltip-format = "{:%e %B %Y}"; tooltip-format = "{:%e %B %Y}";
}; };
"cpu" = { cpu = {
interval = 5; interval = 5;
format = "󰻠 {usage}% ({load})"; # Icon: cpu_64_bit format = "󰻠 {usage}% ({load})"; # Icon: cpu_64_bit
states = { states = {
@ -87,7 +88,7 @@ in
}; };
}; };
"memory" = { memory = {
interval = 5; interval = 5;
format = "󰍛 {}%"; # Icon: memory format = "󰍛 {}%"; # Icon: memory
states = { states = {
@ -96,7 +97,7 @@ in
}; };
}; };
"network" = { network = {
interval = 5; interval = 5;
format-wifi = "󰖩 {essid} ({signalStrength}%)"; # Icon: wifi format-wifi = "󰖩 {essid} ({signalStrength}%)"; # Icon: wifi
format-ethernet = "󰈀 {ifname}: {ipaddr}/{cidr}"; # Icon: ethernet format-ethernet = "󰈀 {ifname}: {ipaddr}/{cidr}"; # Icon: ethernet
@ -116,6 +117,16 @@ in
on-scroll-up = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token volume-down"; on-scroll-up = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token volume-down";
}; };
mpris = {
format = "[{player}] {status_icon} {dynamic}";
status-icons = {
paused = "󰏤 "; # Icon: pause
playing = "󰐊 "; # Icon: play
stopped = "󰓛 "; # Icon: stop
};
on-click-middle = "stop";
};
"sway/mode" = { "sway/mode" = {
format = ''<span style="italic">󰁌 {}</span>''; # Icon: arrow_expand_all format = ''<span style="italic">󰁌 {}</span>''; # Icon: arrow_expand_all
tooltip = false; tooltip = false;
@ -132,9 +143,9 @@ in
format = "{icon} {name}"; format = "{icon} {name}";
sort-by-number = true; sort-by-number = true;
format-icons = { format-icons = {
"urgent" = ""; urgent = "";
"focused" = ""; focused = "";
"default" = ""; default = "";
}; };
}; };
@ -161,7 +172,7 @@ in
}; };
}; };
"wireplumber" = { wireplumber = {
format = "{icon} {volume}%"; format = "{icon} {volume}%";
format-muted = "󰖁"; # Icon: volume_off format-muted = "󰖁"; # Icon: volume_off
format-icons = { format-icons = {
@ -182,7 +193,7 @@ in
on-click-right = "${pkgs.easyeffects}/bin/easyeffects"; on-click-right = "${pkgs.easyeffects}/bin/easyeffects";
}; };
"temperature" = { temperature = {
hwmon-path = cfg.cpuTempPath; hwmon-path = cfg.cpuTempPath;
critical-threshold = 80; critical-threshold = 80;
interval = 5; interval = 5;
@ -197,11 +208,12 @@ in
tooltip = true; tooltip = true;
}; };
"tray" = { tray = {
icon-size = 21; icon-size = 21;
spacing = 10; spacing = 10;
}; };
"idle_inhibitor" = {
idle_inhibitor = {
format = ''<span size="large">{icon}</span>''; format = ''<span size="large">{icon}</span>'';
format-icons = { format-icons = {
activated = "󰛐"; activated = "󰛐";

View file

@ -345,9 +345,13 @@
Name = "enp5s0f1"; Name = "enp5s0f1";
}; };
addresses = [ networkConfig = {
{ Address = "192.168.42.10/24"; } DHCP = "yes";
]; };
# addresses = [
# { Address = "192.168.42.10/24"; }
# ];
}; };
"41-horus1" = { "41-horus1" = {
matchConfig = { matchConfig = {
@ -505,6 +509,10 @@
"mistral" "mistral"
]; ];
}; };
plantuml-server = {
enable = true;
listenPort = 5080;
};
}; };
environment = { environment = {

View file

@ -283,6 +283,7 @@ in
"secrets" "secrets"
]; ];
}; };
playerctld.enable = true;
udiskie = { udiskie = {
enable = true; enable = true;
tray = "auto"; tray = "auto";