mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
users/foo-dogsquared/setups/development: add services to homepage and lnav utility
This commit is contained in:
parent
51bdedf26c
commit
d99ee8309a
@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, options, ... }:
|
||||
{ config, lib, pkgs, options, ... }@attrs:
|
||||
|
||||
let
|
||||
userCfg = config.users.foo-dogsquared;
|
||||
@ -46,6 +46,15 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
users.foo-dogsquared.programs.custom-homepage.sections.services.links =
|
||||
let
|
||||
hasCockpitEnabled = attrs.nixosConfig.services.cockpit.enable or false;
|
||||
in
|
||||
lib.optionals hasCockpitEnabled (lib.singleton {
|
||||
url = "http://localhost:${builtins.toString attrs.nixosConfig.services.cockpit.port}";
|
||||
text = "Cockpit WebUI";
|
||||
});
|
||||
|
||||
systemd.user.sessionVariables = {
|
||||
MANPAGER = "nvim +Man!";
|
||||
EDITOR = "nvim";
|
||||
@ -59,6 +68,7 @@ in {
|
||||
recode # Convert between different encodings.
|
||||
go-migrate # Go potential migraines.
|
||||
oils-for-unix # Rev them up, reverent admin.
|
||||
lnav # Navigate with some logs like what some pirates do.
|
||||
|
||||
# Testing REST and all about backend development.
|
||||
httpie
|
||||
|
Loading…
Reference in New Issue
Block a user