Commit Graph

1247 Commits

Author SHA1 Message Date
colin 835036fc6a make image.nix a first-class module 2022-06-23 15:31:19 -07:00
colin 0579faaf89 get an image which can boot to a login prompt unattended
NB: this breaks compat with the existing lappy install.
need to switch back to impermanence, and switch the disk uuids too.
2022-06-23 02:24:52 -07:00
colin d80bd7d162 inline image building, and (for lappy) use a generic-extlinux-compatible bootloader
the generic bootloader will allow more code-sharing with rpi and
pinephone. desko should soon use the generic bootloader as well.

problems: lappy can't boot from USB stick. it makes it to the initrd,
but there's no dev nodes for the USB drive.
unsure if this is how it was before, too.
2022-06-23 00:24:39 -07:00
colin 44f63c31da move nixos config from /etc/nixos to /home/colin/dev/nixos 2022-06-21 02:23:19 -07:00
colin 1dd791874a remove himalaya: we're using aerc now 2022-06-21 02:02:04 -07:00
colin aefd31b1f6 impermanence: granualize the /home/colin mounts 2022-06-21 01:59:31 -07:00
colin 55f82260d5 impermanence: persist /etc/machine-id 2022-06-21 00:02:57 -07:00
colin ceef35af96 add aerc accounts.conf to secret store (and home-manager) 2022-06-20 23:55:43 -07:00
colin 27ce21cda4 add aerc: a better terminal mail client
TODO: home-manager integration. its config file doesn't obviously
support passwords, but i could possibly encode it as a secret and
bind-mount the secret location, or symlink it?
2022-06-20 17:55:17 -07:00
colin 69e9cbae96 update lappy ssh key.
TODO: this means its sops key has also changed.
2022-06-20 03:30:17 -07:00
colin fa131fe39f lappy: enable impermanence
it mostly went smooth, though i lost a .ssh key.
probably the best upgrade process is to do most of the heavy work in the
initrd:

write the new nix config, notably, configuring a tmpfs / mount
and moving the previous / to /nix.
then boot and in the initrd, move all the `/nix/nix/...` items
up a level.
2022-06-20 03:28:01 -07:00
colin 68f066229b tool to dump SOPS account info (including totp) 2022-06-19 23:54:36 -07:00
colin 786282d9c4 new script to clean space from the nix store 2022-06-19 20:18:57 -07:00
colin 324e9c9b56 add some useful utilities (to initrd and home-manager) 2022-06-19 15:57:20 -07:00
colin d0209cb80f sway: add xdg-open
this lets applications (Discord, etc) open links in the correct
application instead of me manually copy/pasting them.
2022-06-18 18:10:11 -07:00
colin 427d17d218 fix xdg src -> dev dir 2022-06-17 17:52:31 -07:00
colin ea9c201590 cleanup: home-manager: use `with pkgs;` to reduce repetition 2022-06-16 15:02:38 -07:00
colin d9f3209d8c sway: enable bluetooth (and gui bluetooth manager) 2022-06-16 14:52:02 -07:00
colin b50150b52e enable stuff needed for ifuse/iphone photo syncing 2022-06-15 17:22:27 -07:00
colin 10612012fb packages: add audacity 2022-06-14 17:29:46 -07:00
colin faf0cf691c re-enable the `nix` command (`nix build`, `nix flake`, etc)
it was accidentally disabled in in the move away from configuration.nix
2022-06-14 14:20:54 -07:00
colin a9d167cf14 remove configuration.nix
it's no longer needed in nixos-22.05
2022-06-14 02:48:22 -07:00
colin dfb7c997bb tidy up servo /mnt points
now we maintain /mnt/servo-media as a link to the "fastest" mountpoint
2022-06-14 00:13:39 -07:00
colin 7535986932 fs: add desko mount & rework servo mount to use mdns 2022-06-13 22:25:38 -07:00
colin 10937c93d4 duplicity: attempt to limit bandwidth 2022-06-12 15:26:33 -07:00
Colin 2b8ff8d5ae rename 'uninsane' machine -> 'servo' 2022-06-12 15:11:41 -07:00
colin 39049c8a9c sway: add battery indicator
would be nice to hide it on desktop?
2022-06-12 01:01:12 -07:00
colin c11f565226 create a package to hold useful system scripts 2022-06-11 17:40:15 -07:00
colin fb15f84f1d desko: enable duplicity backups 2022-06-10 01:43:48 -07:00
colin 60294c60c3 add backblaze-b2 package 2022-06-10 01:32:48 -07:00
Colin 7da3d48272 migrate duplicity config to a module
this will let other machines reuse it
2022-06-10 01:30:57 -07:00
colin 6c1acb5b9a fs: add uninsane lan mount
also fix the gid (100 = users group)
2022-06-10 00:38:02 -07:00
colin cd43247d2c enable `himalaya` for sending and receiving email
sent messages don't get copied to the sent mailbox, but oh well.
problem for another day.
2022-06-09 18:58:42 -07:00
Colin cf4cde548a implement OVPN wireguard service 2022-06-09 17:41:03 -07:00
colin 2f08252432 move sway-specific home packages to sway.nix 2022-06-09 15:10:51 -07:00
colin 431061b423 home-manager: move programs.waybar to sway.nix 2022-06-09 15:05:58 -07:00
colin 2595c0b4e0 home-manager: move `wayland.windowManager.sway` to sway.nix 2022-06-09 15:01:38 -07:00
colin 51bf327290 port helpers/home-manager-gen-colin.nix to modules system 2022-06-09 14:50:24 -07:00
colin bc51244c52 move helpers/universal -> modules/universal 2022-06-09 14:06:31 -07:00
colin c7252f9c96 phosh: enable opengl; wayland support for electron apps 2022-06-06 18:10:19 -07:00
colin d33d5a4582 hardware-x86_64: port to modules system 2022-06-06 17:51:35 -07:00
colin d6b2cf8ded gui/gnome: port to module system 2022-06-06 17:42:57 -07:00
colin fbad6bda2e gui/plasma-mobile: port to module system 2022-06-06 17:41:35 -07:00
colin 5bae11fcbc gui/phosh: port to module system 2022-06-06 17:39:40 -07:00
colin d28738eb0e gui/sway: port to module system 2022-06-06 17:35:28 -07:00
colin a7259279bb port raspberry pi bootloader fixes to a nixpkgs patch 2022-06-02 14:18:41 -07:00
Colin 1064867194 migrate the nix install to an external USB drive.
this requires a patch to uboot:
- uboot thinks the drive has a capacity of 0 (i.e. 'unknown'). unclear precisely why. could be noncompliant drive firmware, or a timeout somewhere.

and a patch to the rpi bootloader:
- in order to trampoline into the rpi-4 uboot.

and custom kernel modules in the initrd:
- in order to detect the USB hub (rpi fw).

additionally, i'm MANUALLY placing `bcm2711-rpi-400.dtb` into `/boot/nixos/..-linux-5.10.111-dtbs/broadcom`.
i'll want to do this automatically over time.

i hope to simplify much of this over time: this is just the first thing which works after a couple days of hacking at it.
2022-05-17 01:58:12 +00:00