@jnsgruk@hachyderm.io
@jnsgruk@hachyderm.io avatar

jnsgruk

@jnsgruk@hachyderm.io

A {linux,cloud,coffee,car,bike} geek.

VP Engineering at Canonical 🐧 🚀

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jnsgruk, to random
@jnsgruk@hachyderm.io avatar

I bought a robot lawn mower for the new house thinking it would save me time, but now I just spend the time watching the mower instead of pushing one 😂😅

jnsgruk,
@jnsgruk@hachyderm.io avatar

@bashfulrobot actually really impressive - surprisingly it’s also almost silent. The blade isn’t like a traditional mower - it’s got a collection of smaller blades - and this one also uses a camera rather than perimeter wire, so it’s pretty deft at dodging obstacles! (And no annoying setup either!)

ironicbadger, to random
@ironicbadger@techhub.social avatar

Is “devops” as a term played out?

jnsgruk,
@jnsgruk@hachyderm.io avatar

@ironicbadger I’m not sure so much “played out” as “so often used incorrectly it means everything and nothing”

jnsgruk, to random
@jnsgruk@hachyderm.io avatar

@ironicbadger what was the model of the nvidia GPU you bought specifically for doing the AI bits? :)

jnsgruk, to ubuntu
@jnsgruk@hachyderm.io avatar

Today I officially became a #Ubuntu member 😎🤓🚀

jnsgruk,
@jnsgruk@hachyderm.io avatar

@ironicbadger nope, no free rides for Ubuntu membership just for working at Canonical :)

popey, to random
@popey@mastodon.social avatar

Just realised, it's been a couple of weeks and I haven't run "Hugo's Random Benchmark" on this M3 MacBook Pro yet!

2.6s - not bad. Can you do better?

/cc @darkling
https://popey.com/blog/2020/12/counting-to-100-million/

jnsgruk,
@jnsgruk@hachyderm.io avatar

@popey 1.72s :)

pimeys, to NixOS
@pimeys@social.nauk.io avatar

Thank you for the TPM2 article @jnsgruk. I decided to give it a go last weekend, and it was a bit longer process than 10 minutes. For anybody who struggle to get rid of the password prompt for the LUKS volume, this setting is essential:

boot.initrd.systemd.enable = true;

The initrd must have systemd installed, so the settings defined with systemd-cryptenroll are available during the boot. Alternative way is to use Clevis to encrypt the LUKS password using the TPM module, and invoke it during boot. This is not super complex either, but I kind of like the systemd approach more.

Also the article didn’t mention much about the different PCR ids you can use with TPM. These define the system state when a secret key can be accessed from the TPM module. If any of the policies trigger, the TPM module will not output any secrets and the user needs to enter the LUKS password. The article uses three policies:

  • 0: firmware updates
  • 2: extended ROMs from pluggable hardware (e.g. USB)
  • 7: secure boot disabled, or firmware certificates update

Additionally, one policy is needed to ensure an attacker cannot boot the system to a single user mode from the bootloader:

  • 12: kernel config change, e.g. changing the boot parameters.

It is important to wipe the old slots with systemd-cryptenroll when changing the PCRs. Changing them is additional, and doesn’t modify the existing policies.

Edit: and do not wipe the password slot! This will render your disk unbootable.

jnsgruk,
@jnsgruk@hachyderm.io avatar

@pimeys oh nice, I was already using systemd in my initrd so missed that - I’ll update the article!

Nice tip about PCR#12, too

jnsgruk,
@jnsgruk@hachyderm.io avatar

@pimeys the linked commit will land shortly, including a short note to credit you for the update. Thanks again!

https://github.com/jnsgruk/jnsgr.uk/commit/bbeb59f0bec8845da69a4646c14998c4c76d1a95

jnsgruk, to random
@jnsgruk@hachyderm.io avatar

s/jammy/noble/g

jnsgruk, to NixOS
@jnsgruk@hachyderm.io avatar

🚨 New blog post! 🚨

Over the past few days, I've been writing about Secure Boot, TPMs and how to using lanzaboote to enable secure boot and TPM-backed disk unlocking on #nixos

https://jnsgr.uk/2024/04/nixos-secure-boot-tpm-fde/

jnsgruk, to NixOS
@jnsgruk@hachyderm.io avatar

After a few months of maintaining my crafts-flake project, I just landed the final PR upstream in #nixpkgs which means that #rockcraft, #charmcraft and #snapcraft willl soon be readily available to all #NixOS users 😎 🚀

jnsgruk, to random
@jnsgruk@hachyderm.io avatar

@popey I was listening to your NUC woes - I had very similar on my Skull Canyon NUC a couple of years ago, and it turned out to be a slowly failing SSD. Frustrated me for months trying to troubleshoot it: it never failed a file system check, and I wasn’t really able to diagnose it until the drive just failed one day…

bashfulrobot, to random
@bashfulrobot@hachyderm.io avatar

@popey have you seen any GitHub actions to build and publish a snap? I have some old ones that I still own, and want to get away from setting up an env to build when I remember. 😂

jnsgruk,
@jnsgruk@hachyderm.io avatar

@bashfulrobot @popey I wrote about some actions we use in Snapcrafters a couple of weeks ago - they can probably be reused without much effort: https://jnsgr.uk/2024/03/simplifying-snap-gui-testing/

There is also the more simple https://github.com/snapcore/action-build

😃

jnsgruk, to random
@jnsgruk@hachyderm.io avatar

First 3D print on my new Bambu Lab X1 Carbon!

jnsgruk, to NixOS
@jnsgruk@hachyderm.io avatar

Last week I was on @selfhostedshow with @ironicbadger and @ChrisLAS. Super fun conversation at the intersection of my home & work tech life - a combination of and 😎

Thanks for having me! 🤩

https://selfhosted.show/118

ironicbadger, to NixOS
@ironicbadger@techhub.social avatar

#itshappening #nixos is going on the media server!

jnsgruk,
@jnsgruk@hachyderm.io avatar

@ironicbadger the more perfect media server? 😉

ironicbadger, (edited ) to random
@ironicbadger@techhub.social avatar

We had @jnsgruk from Canonical on the podcast this week, to talk about contributing to Nix. I could talk about Nix all day!

https://selfhosted.show/118

jnsgruk,
@jnsgruk@hachyderm.io avatar

@ironicbadger I rememberd you talked about trying to import just the plasma 6 service from unstable, and resorted to rebasing your config on unstable instead.

There is a better way! You can disable the module on the current channel, and import from another channel. In the example linked below, the machine is on the nixos 23.11 channel, but I grab the updated homepage-dashboard service from unstable :)

https://github.com/jnsgruk/nixos-config/blob/b62aa6ecc10446c534457b92126d75ea0db680c1/host/common/services/homepage/default.nix#L3-L4

jnsgruk, to random
@jnsgruk@hachyderm.io avatar

Thanks to @cassidy I learned that it's possible to sort git branches by commit date - I really wish I'd known that sooner!

https://github.com/jnsgruk/nixos-config/commit/efde647467450fd01fd4645c9da15757aa9a43d1

jnsgruk, to NixOS
@jnsgruk@hachyderm.io avatar

Another day, another blog post!

This time I give a detailed walkthrough of how I packaged Scrutiny, a S.M.A.R.T disk monitoring tool for #nixos.

Let me know if you'd like to see this in a standalone flake, or contributed to #nixpkgs.

Either way, my hard disk monitoring has never looked so good! 🚀

https://jnsgr.uk/2024/02/packaging-scrutiny-for-nixos/

jnsgruk,
@jnsgruk@hachyderm.io avatar

@ironicbadger thanks for the heads up about this little gem!

jnsgruk,
@jnsgruk@hachyderm.io avatar

@ironicbadger Yeh that feels like an oversight, but in this case the machine is configured with disko, and I think the way its configured the disks will keep their identity. Time will tell!

jnsgruk, to NixOS
@jnsgruk@hachyderm.io avatar

🚨 New blog post! 🚨

This time I wrote about how I run #NixOS virtual machines inside Github Actions to run end-to-end tests on the "craft" suite of applications from Canonical.

This only (realistically) became possible last year when Github enabled access to KVM accelerated virtual machines in their runners.

https://jnsgr.uk/2024/02/nixos-vms-in-github-actions/

molly0xfff, to random
@molly0xfff@hachyderm.io avatar

fuck i love blogs. if i had nothing but time i would just read blogs all day.

jnsgruk, (edited )
@jnsgruk@hachyderm.io avatar
jnsgruk, to random
@jnsgruk@hachyderm.io avatar

@popey was just listening to Linux Matters - I reckon we could hook up the snapcrafters CI to the new M1 GitHub runners quite easily https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/

Looks like there might be a free tier from what I can see 😎

jnsgruk,
@jnsgruk@hachyderm.io avatar

@popey gimme a shout if you run into any issues with the snapcrafters stuff -- should be fairly easy to adjust with the runs-on parameters :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • Durango
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • lostlight
  • All magazines