Skip to content

Commit

Permalink
feat(aconfmgr): apply wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverdding committed Jul 19, 2024
1 parent 08ea70c commit 3b7b787
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 5 deletions.
3 changes: 3 additions & 0 deletions dot_config/aconfmgr/.chezmoiignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
102-install-btrfs.sh
201-configure-ufw.sh
202-configure-zram.sh
204-configure-timesyncd.sh
300-configure-network.sh
301-configure-bluetooth.sh
{{- else }}
103-install-wsl.sh
{{ end }}
{{ if ne .hosttype "desktop" }}
302-install-kde.sh
Expand Down
7 changes: 2 additions & 5 deletions dot_config/aconfmgr/100-install-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ AddPackage openssh # SSH protocol implementation for remote login, command execu
AddPackage paru # Feature packed AUR helper
AddPackage pigz # Parallel implementation of the gzip file compressor
AddPackage run-parts # run scripts or programs in a directory
AddPackage sudo # Give certain users the ability to run some commands as root
AddPackage tree # A directory listing program displaying a depth indented list of files
AddPackage unarchiver # unar and lsar: Objective-C tools for uncompressing archive files
AddPackage unrar # The RAR uncompression program
AddPackage unzip # For extracting and viewing files in .zip archives
AddPackage which # A utility to show the full path of commands
AddPackage xdg-user-dirs # Manage user directories like ~/Desktop and ~/Music
AddPackage zip # Compressor/archiver for creating and modifying zipfiles

CopyFile /etc/systemd/timesyncd.conf.d/china.conf

CreateLink /etc/systemd/system/dbus-org.freedesktop.timesync1.service /usr/lib/systemd/system/systemd-timesyncd.service
CreateLink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service /usr/lib/systemd/system/systemd-timesyncd.service
1 change: 1 addition & 0 deletions dot_config/aconfmgr/103-install-wsl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CopyFile /etc/pacman.d/hooks/50-setcap-iputils.hook
4 changes: 4 additions & 0 deletions dot_config/aconfmgr/150-install-development-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ AddPackage git-lfs # Git extension for versioning large files
AddPackage hurl # Run and test HTTP requests with plain text
AddPackage just # A handy way to save and run project-specific commands
AddPackage mkcert # Simple tool for making locally-trusted development certificates
AddPackage sqlfluff # A dialect-flexible and configurable SQL linter
AddPackage taplo-cli # TOML toolkit written in Rust
AddPackage tcpdump # Powerful command-line packet analyzer
AddPackage traceroute # Tracks the route taken by packets over an IP network
AddPackage vscode-json-languageserver # JSON language server
AddPackage yaml-language-server # YAML Language Server

AddPackage --foreign duckdb-bin # An in-process SQL OLAP database management system
1 change: 1 addition & 0 deletions dot_config/aconfmgr/153-install-development-go.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
AddPackage go # Core compiler tools for the Go programming language
AddPackage gofumpt # A strict formatter for Go language
AddPackage gopls # Language server for Go programming language
AddPackage protobuf # Protocol Buffers - Google's data interchange format
AddPackage revive # faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
2 changes: 2 additions & 0 deletions dot_config/aconfmgr/200-configure-bare-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ CopyFile /etc/sudoers.d/99_wheel
# --- journald, see also: https://man.archlinux.org/man/journald.conf.5.en
CopyFile /etc/systemd/journald.conf.d/override.conf

CreateLink /etc/systemd/system/getty.target.wants/[email protected] /usr/lib/systemd/system/[email protected]
CreateLink /etc/systemd/system/multi-user.target.wants/remote-fs.target /usr/lib/systemd/system/remote-fs.target
4 changes: 4 additions & 0 deletions dot_config/aconfmgr/204-configure-timesyncd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CopyFile /etc/systemd/timesyncd.conf.d/china.conf

CreateLink /etc/systemd/system/dbus-org.freedesktop.timesync1.service /usr/lib/systemd/system/systemd-timesyncd.service
CreateLink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service /usr/lib/systemd/system/systemd-timesyncd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/bin/ping

[Action]
Description = Adding capabilities to ping to allow non-root user to ping...
When = PostTransaction
Exec = /usr/bin/setcap cap_net_raw+p /usr/bin/ping

0 comments on commit 3b7b787

Please sign in to comment.