Commit graph

59 commits

Author SHA1 Message Date
Pig Monkey
21d0588aab install starship 2025-04-11 15:30:59 -07:00
Pig Monkey
966b159668 user kewlfft.aur collection
Closes #120 #74
2024-12-01 20:21:53 -08:00
Pig Monkey
66647279ba perform shell tasks after user init
Since the shell tasks now include installing an AUR package, the user
must first exist.
2024-12-01 17:49:13 -08:00
Pig Monkey
94aeb4a6be move sudo tasks into base role
Closes #117
2024-06-24 16:06:35 -07:00
Pig Monkey
af2b70d9a9 allow setting user's group ID 2024-02-04 12:29:05 -08:00
Pig Monkey
3771432d0e install zsh-antidote 2023-11-16 16:12:53 -08:00
Pig Monkey
18b2e2e64c move kernel parameters task to grub role 2023-10-12 20:09:46 -07:00
Pig Monkey
7272684557 remove community from pacman.conf 2023-06-17 09:41:14 -07:00
Pig Monkey
8c8959df11 remove old include 2022-10-26 09:32:36 -07:00
Pig Monkey
6ea4d5b563 configure sudo with sudoers.d/ files
Existing users should first run tasks with tagged with `sudo` to apply
these changes, and then install the latest `/etc/sudoers` file from the
sudo package (probably already on your system as `/etc/sudoers.pacnew`).

Reversing those two steps probably prevents you from sudoing.
2022-10-24 21:33:58 -07:00
Pig Monkey
29beab046f replace deprecated include with include_tasks 2022-10-14 17:36:47 -07:00
Pig Monkey
467670fd14 enable pacman parallel downloads 2021-06-02 11:22:51 -07:00
Pig Monkey
04b62197a1 increase randomized delay of persistent timers
This reduces the chance of a timer executing a time consuming service
close to boot, potentially speeding up boot (or at least making
`systemd-analyze blame` look better).
2021-02-17 18:16:36 -08:00
Pig Monkey
4372b17336 remove unnecessary quote escapes 2020-01-19 11:18:02 -08:00
Pig Monkey
c075363838 install missing packages 2020-01-18 15:24:31 -08:00
Pig Monkey
6abfc77f4d reformat yml 2020-01-18 15:10:59 -08:00
Pig Monkey
365554fdc9 drop cower
Cower has been removed the AUR.
2019-05-07 18:55:11 -07:00
Pig Monkey
b91c1adace misc formatting 2019-04-30 21:05:39 -07:00
Pig Monkey
2a013e1791 replace deprecated with_items on package tasks
https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.7.html#using-a-loop-on-a-package-module-via-squash-actions
2019-04-25 20:33:04 -07:00
Pig Monkey
c4be5e5e7b add systemd timer to update pacman mirrors daily
This increases the likelihood of speedy and up-to-date mirrors,
particularly during travel.
2018-11-17 21:38:45 -08:00
Pig Monkey
ceb1526498 reformat base package installation task 2018-11-17 21:00:54 -08:00
Pig Monkey
58febce4bb rework reflector mirrorlist update script 2018-11-17 21:00:36 -08:00
Pig Monkey
c2bcd10c53 support kernel parameters
Note that this is only supported for grub. That is the only bootloader I
use. Patches for other bootloaders will be accepted.

The default params:

    * quiet the boot process
    * cause all virtual terminals to blank (ie, screen power off) after 60 seconds
    * enable panel self refresh v2

Blanking the screen is useful with physlock. Physlock does not run in X,
so DPMS settings have no effect on it.

PSR can potentially improve battery life on some machines, but cause
screen flicker on others. I have happily been using v2 on a ThinkPad
X260 for 6 months, but users should experiment between 1/2/3/4 to find
the best setting for their machine, or disable it entirely with 0. See:

* https://hansdegoede.livejournal.com/18653.html
* https://patchwork.kernel.org/patch/8182841/
2018-09-06 20:06:40 -07:00
Pig Monkey
80205b8710 use all cores when compressing packages 2018-06-01 20:02:18 -07:00
Pig Monkey
a3ec20ccec Merge branch 'feature/start-systemd-user-session' of https://github.com/elvetemedve/spark into elvetemedve-feature/start-systemd-user-session 2018-03-26 11:27:57 -07:00
Pig Monkey
6b2eab7427 add the user tag whenever modifying the user
Running the playbook with --tags=user should trigger all user-modifying
tasks, not just the initial setup.
2018-03-26 11:26:43 -07:00
Pig Monkey
8b4df2076b append user groups
Otherwise running just the user tasks will overwrite the group list,
removing the user from all other groups.
2018-03-26 11:25:25 -07:00
Géza Búza
abb3c22501 Start per-user instance of Systemd 2018-03-26 18:32:26 +02:00
Pig Monkey
c893ab5d17 add user to uucp group for r/w to serial devices 2017-11-05 16:45:51 -08:00
Pig Monkey
58b2d62222 increase user log retention 2017-08-27 11:34:38 -07:00
Pig Monkey
f38809a206 ...and correct the var name 2016-12-17 19:21:00 -08:00
Pig Monkey
283ec1471a correct journal config filename
oops
2016-12-17 19:19:28 -08:00
Pig Monkey
8da136c5db set max size for systemd journal
My /var/log/journal was 2.9GB. I'm not sure what a good limit is, but it
certainly is less than that...
2016-12-17 19:15:25 -08:00
Pig Monkey
b3b22fa8dc add hook to update pacman mirrors
inspired by
https://www.reddit.com/r/archlinux/comments/4zdol6/a_pacman_hook_to_update_pacman_mirrorlist_using/
2016-09-01 18:43:54 -07:00
Ruslan Kiianchuk
eb1d298446 Validate sudoers file before copying
Ansible `copy` module has `validation` parameter that allows to validate the file prior to replacing it on remote:

> The validation command to run before copying into place. The path to the file to validate is passed in via '%s' which must be present as in the example below. The command is passed securely so shell features like expansion and pipes won't work.

Here we use `visudo` to validate the file before writing it in place, so the user won't lock himself out in case of incorrect changes to `sudoers.j2` template.
2016-07-18 14:01:56 -07:00
Pig Monkey
3ff8ffbc10 avoid log rotation recursion of doom 2016-02-16 21:42:32 -08:00
Pig Monkey
50e5c72d74 set user uid
I'm assuming this won't break anything because most users will already
be 1000. Existing users whose primary accounts have a different UID
should set the var appropriately.
2016-02-16 21:40:28 -08:00
Pig Monkey
157805398d breakout cron role 2016-01-30 16:07:54 -08:00
Pig Monkey
48912b59db add handlers
This should mostly eliminate the need to manually reload/restart
services (or reboot the machine) after updates.
2016-01-30 16:01:47 -08:00
Pig Monkey
e6c517b441 use a systemd timer for paccache cleanup
Since cron is not installed by default, we shouldn't depend on it. Users
should have the choice of running a cron-free system without any
decrease in functionality.

paccache service and timer units stolen from:
https://github.com/kylemanna/systemd-utils
2016-01-19 22:31:47 -08:00
Pig Monkey
114c5f6fe6 add ssh role 2016-01-19 21:36:21 -08:00
Pig Monkey
74fb1637fa create dotfiles role 2016-01-19 21:31:27 -08:00
Pig Monkey
cbcbde3242 hostname is optional
Setting the hostname is part of the pre-ansible install instructions, so
it is really only useful here to change the hostname. Changing the
hostname probably doesn't happen often and is simple enough without
ansible, so meh.
2016-01-15 19:26:02 -08:00
Pig Monkey
e239726eef user bin is no longer required 2016-01-14 19:58:06 -08:00
Pig Monkey
6b0c1dacf0 support config for passwordless sudo 2016-01-11 19:17:08 -08:00
Pig Monkey
70c4e67605 export SSH_ASKPASS 2015-12-29 16:54:33 -08:00
Pig Monkey
a5b267d9ad rotate user logs 2015-12-27 18:36:37 -08:00
Pig Monkey
6983acf197 create user log dir 2015-12-27 18:25:48 -08:00
Pig Monkey
2d0c544683 use ansible-aur module for AUR packages 2015-12-12 13:12:19 -08:00
Pig Monkey
6d03bc60f9 create user bin 2015-12-07 16:54:13 -08:00