Skip to content

Instantly share code, notes, and snippets.

View con-f-use's full-sized avatar
💭
😱

con-f-use

💭
😱
  • A University, An IT Firm
  • Europe
View GitHub Profile
@con-f-use
con-f-use / ssh_principals.nix
Created December 27, 2023 22:23
SSH Principals nix module
{ config, lib, ... }:
{
options.users.users = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, config, ... }: {
options.openssh.authorizedPrincipals = lib.mkOption {
type = lib.types.listOf lib.types.str;
example = ''[ "admins", "developers", "it-personnel" ]'';
description = lib.mdDoc ''
@con-f-use
con-f-use / misc_nix_links.md
Last active September 26, 2025 21:43
Random Nix Links
@con-f-use
con-f-use / parti.sh
Last active October 27, 2025 18:20
#!/usr/bin/env bash
prt:all() {
prt:part "$@"
prt:lvm
prt:fs
prt:mnt
}
prt:part() {