Compare commits

..

3 commits

Author SHA1 Message Date
1a931b76bd
refactor(viridian): improve remote deployment security
- Remove passwordless sudo for wheel group
- Update deploy command to use -S flag for sudo password prompt
- Maintain secure remote access while enabling deployments
2025-12-20 19:33:59 +08:00
efbbfecb2c
feat(viridian): add CLI features and disable tmux status bar
- Import CLI feature configuration (includes zsh setup)
- Disable tmux status bar for cleaner interface
2025-12-20 19:33:19 +08:00
61e348a83f
feat(inspircd): configure proper logging directory
- Ensure log directory exists via systemd LogsDirectory
- Update log path to use absolute path /var/log/inspircd/ircd.log
2025-12-20 19:32:20 +08:00
5 changed files with 7 additions and 7 deletions

View file

@ -1,13 +1,14 @@
{...}: { {...}: {
imports = [ imports = [
./global ./global
./features/cli
]; ];
programs.tmux = { programs.tmux = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
set -g default-terminal "tmux-256color" set -g default-terminal "tmux-256color"
set -g status on set -g status off
''; '';
}; };
} }

View file

@ -8,5 +8,4 @@ switch *ARGS:
sudo nixos-rebuild switch --flake .#{{ARGS}} sudo nixos-rebuild switch --flake .#{{ARGS}}
deploy *ARGS: deploy *ARGS:
nixos-rebuild switch --flake .#{{ARGS}} --target-host {{ARGS}} --use-remote-sudo nixos-rebuild switch -S --flake .#{{ARGS}} --target-host {{ARGS}}

View file

@ -49,9 +49,6 @@
oci-containers.backend = "docker"; oci-containers.backend = "docker";
}; };
# Required for smooth remote deployments
security.sudo.wheelNeedsPassword = false;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -4,6 +4,9 @@
config = builtins.readFile ./inspircd.conf; config = builtins.readFile ./inspircd.conf;
}; };
# Ensure log directory exists
systemd.services.inspircd.serviceConfig.LogsDirectory = "inspircd";
environment.etc = { environment.etc = {
"inspircd/inspircd.motd".source = ./inspircd.motd; "inspircd/inspircd.motd".source = ./inspircd.motd;
}; };

View file

@ -589,7 +589,7 @@
# The following log tag is highly default and uncustomised. It is recommended you # The following log tag is highly default and uncustomised. It is recommended you
# sort out your own log tags. This is just here so you get some output. # sort out your own log tags. This is just here so you get some output.
<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="ircd.log"> <log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="/var/log/inspircd/ircd.log">
#-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-# #-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#
# # # #