Skip to content

Instantly share code, notes, and snippets.

View Lillecarl's full-sized avatar
🦕
Dinosaurs are a lie!

Ujp8LfXBJ6wCPR Lillecarl

🦕
Dinosaurs are a lie!
View GitHub Profile
From 96e8af0db92f64c0f3f3118297b9aaa8561142f7 Mon Sep 17 00:00:00 2001
From: Carl Hjerpe <git@hjerpe.xyz>
Date: Mon, 29 Apr 2024 14:56:15 +0200
Subject: [PATCH] podman: Add compose support
Enables docker socket
Enables weekly automatic pruning
Adds alias for docker-compose -> podman-compose
---
hosts/nub/default.nix | 7 +++++--
{ pkgs, lib, inputs, self, ... }:
let
pin =
let
src = inputs.hyprscroller;
pinpath = "${src}/hyprpm.toml";
toml = builtins.fromTOML (builtins.readFile pinpath);
pins = toml.hyprscroller.commit_pins;
pin = lib.lists.last pins;
landrev = lib.elemAt pin 0;
_:
{
home.sessionVariables = {
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/keyring/ssh";
};
services.gnome-keyring = {
enable = true;
components = [ "pkcs11" "secrets" "ssh" ];
};
}
_:
{
home.sessionVariables = {
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/keyring/ssh";
};
services.gnome-keyring = {
enable = true;
components = [ "pkcs11" "secrets" "ssh" ];
};
}
k9s:
ui:
skin: stylix
{ inputs, pkgs, ... }:
{
imports = [
../../common/stylix.nix
];
stylix = {
targets = {
# Disable swaylock target since we're using Gandalf splash screen
swaylock.enable = false;
# Use catppuccin for GTK and QT
diff --git a/common/acme.nix b/common/acme.nix
new file mode 100644
index 0000000..35ddbdd
--- /dev/null
+++ b/common/acme.nix
@@ -0,0 +1,11 @@
+{ ... }:
+{
+ security.acme = {
+ acceptTerms = true;
.config/
.config/fish/
.config/fish/conf.d/
.config/fish/conf.d/journal.fish
.config/fish/conf.d/linked.fish
.config/hypr/
.config/hypr/linked.conf
.config/nvim/
.config/nvim/lua/
.config/nvim/lua/catppuccin_config.lua
- name: Startup
tags: startup
block:
- name: 'gather EC2 instance facts'
action: ec2_metadata_facts
register: ec2_metadata_facts
- name: 'get existing EBS volume'
command: "aws --region {{ ansible_ec2_placement_region }} ec2 describe-volumes --filters Name=tag:Name,Values={{ influxdb_data_volume_tag }} --output json"
register: awscli_output
when: influxdb_data_volume_tag is defined