sfba.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for the San Francisco Bay Area. Come on in and join us!

Server stats:

2.2K
active users

#nix

50 posts42 participants6 posts today

How are people who use #agenix solving passing secrets to modules that don't take a path? I'm specifically looking at my Prometheus config where I need to configure a bearer token for a scrape job, and API tokens in the Alertmanager configuration. All of these just take strings.

I guess you can lib.readFile the decrypted file which is frowned upon, but there's no other users on the system so I guess having it in the clear in the store is less of an issue.

I've created a PR in #Nixkell, a simple #Nix #Haskell setup framework, to add support for easy building of statically-linked executables (github.com/pwm/nixkell/pull/50). I'd appreciate it if any Nixkell users gives it a try for their projects. I've been using this code for a couple of my projects, and it works fine for me, but I'd like to have more working examples.

This PR adds support for easily building statically-linked executable using Nixkell and Nix. Majorly, it:

adds an overlays-static.nix file that configures GHC and Haskell packages for building sta...
GitHubAdd support for building statically-linked executable by abhin4v · Pull Request #50 · pwm/nixkellBy abhin4v

Well, I am clueless. Because this should have worked:

# Load Bluetooth-related kernel modules at boot
  boot.kernelModules = [ "usb" "xhci_hcd" "btusb" "bluetooth" ];
``` 

Followed by
# 📶 Bluetooth Configuration

# Enable Bluetooth support
hardware.bluetooth.enable = true;

# Ensure Bluetooth is powered on when the system starts
hardware.bluetooth.powerOnBoot = true;

# Enable the Bluetooth service (systemd bluetooth service)
systemd.services.bluetooth = {
enable = true;
description = "Bluetooth service";
wantedBy = [ "basic.target" ]; # Start Bluetooth very early in the boot process
after = [ "sysinit.target" ]; # Bluetooth should be started after the system initialization
before = [ "network.target" "multi-user.target" "graphical.target" ]; # Start Bluetooth before networking, multi-user, and graphical services
};
```

My computer is an old Dell Precision T3610 and in the front of that case, I have a USB Bluetooth Adaptor. I believe the USB Bluetooth adaptor uses Realtek chipset. The actual keyboard is an Apple Bluetooth keyboard. It is model A1843 is that makes a difference.

I have no problem using my keyboard once logged in. The issue is logging in after a reboot (when greeted with SDDM). To login, I just connect a wire, but I would like to be wireless the whole time if possible.

#NixOS #Nix #Linux #Bluetooth #KdePlasma #KDE #Plasma

NixOS is going to give me a headache. lol

I can connect to Bluetooth once I log in. But I need Bluetooth (keyboard) to login. My Bluetooth adaptor is plugged into my PCs front USB port. I have the following in my config:

# Powers on Bluetooth at boot.
hardware.bluetooth.powerOnBoot = true;

# Enables Bluetooth
hardware.bluetooth.enable = true;

I am using KDE Plasma, which means the login manager is SDDM.

#NixOS #Nix #Linux