mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Compare commits
No commits in common. "60d60bcaa2ac51537553ac112a1d96b13a3a8359" and "2fa75b084bc4710ce6dc9e002302396cf93195c3" have entirely different histories.
60d60bcaa2
...
2fa75b084b
5 changed files with 0 additions and 83 deletions
|
|
@ -24,16 +24,12 @@ in {
|
|||
gnumeric
|
||||
opensnitch
|
||||
opensnitch-ui
|
||||
mumble
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"libsoup-2.74.3"
|
||||
];
|
||||
|
||||
users.users.muon.extraGroups = ["docker"];
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
# System
|
||||
mods.user.name = "muon";
|
||||
networking.hostName = cfg.user.name;
|
||||
|
|
|
|||
|
|
@ -14,13 +14,11 @@ in {
|
|||
mods.terminal.emulator.enable = true;
|
||||
mods.terminal.development.enable = true;
|
||||
mods.terminal.tools.enable = true;
|
||||
mods.terminal.hr.enable = true;
|
||||
mods.desktop.development.enable = true;
|
||||
mods.desktop.productivity.enable = true;
|
||||
mods.desktop.media.enable = true;
|
||||
mods.zen.enable = true;
|
||||
mods.obsidian.enable = true;
|
||||
mods.opencode.enable = true;
|
||||
|
||||
# Hardware preferences
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
./helix
|
||||
./nvim
|
||||
./zellij
|
||||
./opencode
|
||||
];
|
||||
|
||||
config = lib.mkIf osConfig.mods.desktop.enable {
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
openssl,
|
||||
pkg-config,
|
||||
git,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "dcg";
|
||||
version = "v0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Dicklesworthstone";
|
||||
repo = "destructive_command_guard";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-tkjHhSMoLRV56AwUa0DkoDMoEj6gUZx/ih0VTC9C+4o=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-G6cOjl5tLdjBg7A+Itnk/t6tLzoU7gKYOTYlZm3HSlA=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
openssl
|
||||
openssl.dev
|
||||
git
|
||||
];
|
||||
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
|
||||
|
||||
meta = {
|
||||
description = "A high-performance hook for AI coding agents that blocks destructive commands before they execute, protecting your work from accidental deletion";
|
||||
homepage = "https://github.com/Dicklesworthstone/destructive_command_guard";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [];
|
||||
};
|
||||
})
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options.mods.opencode.enable = lib.mkEnableOption "enables opencode";
|
||||
|
||||
# imports = [
|
||||
# ./package.nix
|
||||
# ./dcg.nix
|
||||
# ];
|
||||
|
||||
config = lib.mkIf config.mods.opencode.enable {
|
||||
home.packages = with pkgs; [
|
||||
(callPackage ./dcg.nix {})
|
||||
];
|
||||
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"plugin" = ["opencode-gemini-auth"];
|
||||
|
||||
"permission" = {
|
||||
"bash" = {
|
||||
"*" = "ask";
|
||||
"rm *" = "deny";
|
||||
"rmdir *" = "deny";
|
||||
"unlink *" = "deny";
|
||||
"*rm *" = "ask";
|
||||
"*rmdir *" = "ask";
|
||||
"*unlink *" = "ask";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue