Skip to content

Instantly share code, notes, and snippets.

@s1341
s1341 / config
Created May 10, 2023 05:40
waybar config
[
{
"battery": {
"bat": "BAT0",
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-icons": [
"󰁺",
"󰁻",
"󰁼",
@s1341
s1341 / freeipa-server.nix
Created May 29, 2023 04:08
working freeipa config
{
config,
lib,
...
}: let
cfg = config.services.freeipa-server;
in {
options.services.freeipa-server = {
enable = lib.mkEnableOption "freeipa service";
router = lib.mkOption {
@s1341
s1341 / host.nix
Created August 15, 2023 06:20
nixos host config flake
{ system, pkgs, home-manager, inputs, lib, user, ... }:
{
mkHost =
{ name
, vlan20nic
, initrdMods
, kernelMods
, kernelParams
, kernelPackage
, systemConfig
❯ sudo nixos-rebuild switch --show-trace
warning: Git tree '/etc/nixos' is dirty
error:
… while calling the 'seq' builtin
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:320:18:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^