Skip to content

Keeping custom configuration in pacman packages?

I'm considering using pacman packages to store my system configuration. Things like custom /etc config files, systemd units and dropins etc. This seems to be quite straightforward, but I wanted to ask if you have some experiences with this approach.

3 points15 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
7uke88

Author

18
posts
229
comments
3
media
View profile

15 comments

https://github.com/Foxboron/PKGBUILDS/tree/master/foxboron-system

https://github.com/Earnestly/pkgbuilds/tree/master/system-config

My only comment is that this is a great idea and saves me a lot of time when doing new installs. Really worth the effort.

3 points

package_foxboron-pacman-backup depends on itself in your PKGBUILD file?
Anyway, I'll 'borrow' some of your ideas. ;-)

1 points

Oh, typo! Its highly experimental :D And currently only been installed in yolo ways.

1 points

That's actually a neat idea, you can list dependencies and so on. As problem I see that Pacman is refusing to install package if there is existing files in file system already, you can avoid it by using user configuration and place files in home directory instead of system ones.

2 points

This is what I do and it works well. Any questions in particular?

1 points
urvllOP9 hidden

How do you deal with overwriting existing files? Pacman normally refuses to overwrite files from another package.

1 points

I've never found that to be necessary. What would you need to overwrite?

Right now I use a PKGBUILD to configure:

  • packages I use (ensure they're installed)
  • pacman configuration
  • font configuration
  • laptop stuff (tlp and trackpad)
  • sudo configuration (enable wheel)
  • xorg hidpi config on desktop
2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.