Compare commits

..

2 commits

Author SHA1 Message Date
a0cc980491 Merge branch 'main' of codeberg.org:muon/home 2025-08-16 18:49:23 +00:00
00433dd778 Add QMK Cheat config 2025-08-16 18:47:43 +00:00
6 changed files with 108 additions and 73 deletions

View file

@ -29,6 +29,7 @@ in {
networking.hostName = cfg.user.name;
networking.hostId = "a230906f";
mods.home.file = ./home.nix;
nix.settings.trusted-users = ["root" "muon"];
# Modules
mods.desktop.enable = true;
@ -61,6 +62,9 @@ in {
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = ["user-with-access-to-virtualbox"];
services.picom.enable = true;
services.picom.opacityRules = ["50:name *= 'Cheat'"];
# Proprietary </3
mods.unfree.steam.enable = true;
mods.unfree.nvidia.enable = true;

View file

@ -55,6 +55,9 @@ in {
services.hardware.openrgb.enable = true;
virtualisation.docker.enable = true;
services.picom.enable = true;
services.picom.opacityRules = ["50:name *= 'Cheat'"];
# Persist
environment.persistence."/persist" = {
directories = ["/etc/NetworkManager" "/var/lib/NetworkManager"];

View file

@ -97,6 +97,10 @@ in
hideEdgeBorders = "smart";
};
floating.criteria = [
{title = "Cheat";}
];
defaultWorkspace = "workspace number 1";
workspaceAutoBackAndForth = true;
focus.wrapping = "yes";

View file

@ -128,7 +128,10 @@
# python.lsp.package = [(lib.getExe pkgs.ruff) "server"];
python.format.type = "ruff";
clang.enable = true;
clang = {
enable = true;
cHeader = true;
};
};
statusline.lualine.enable = true;

View file

@ -1,15 +1,23 @@
{ pkgs, lib, config, ... }:
let cfg = config.mods.terminal;
in with lib; {
{
pkgs,
lib,
config,
...
}: let
cfg = config.mods.terminal;
in
with lib; {
options.mods.terminal.tools.enable = mkEnableOption "enables cli tools";
config = mkIf cfg.tools.enable {
programs = builtins.listToAttrs (map (name: {
programs =
builtins.listToAttrs (map (name: {
name = name;
value = {
value =
{
enable = true;
} // optionalAttrs
}
// optionalAttrs
(builtins.hasAttr "enableZshIntegration" config.programs.${name}) {
enableZshIntegration = mkIf cfg.zsh.enable true;
};
@ -29,7 +37,8 @@ in with lib; {
"htop"
"vifm"
"rbw"
]) // {
])
// {
atuin = {
enable = true;
enableZshIntegration = true;
@ -68,6 +77,8 @@ in with lib; {
# utilities
fend
xclip
just
devenv
];
};
}

View file

@ -1,10 +1,18 @@
{ pkgs, lib, config, inputs, system, ... }: {
{
pkgs,
lib,
config,
inputs,
system,
...
}: {
options = {
mods.nix.upgrade.enable = lib.mkEnableOption "enables nix auto upgrade";
mods.nix.clean.enable = lib.mkEnableOption "enables nix auto cleaning";
};
config = let flake = "/home/${config.mods.user.name}/.config/home";
config = let
flake = "/home/${config.mods.user.name}/.config/home";
in {
system.autoUpgrade = {
enable = config.mods.nix.upgrade.enable;
@ -28,12 +36,14 @@
"https://nix-community.cachix.org"
"https://nixpkgs-unfree.cachix.org"
"https://hyprland.cachix.org"
"https://devenv.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
};