Update flakes

This commit is contained in:
Arnie
2025-11-09 21:35:49 +01:00
parent 7e2ae203da
commit 5c15c6885d
4 changed files with 119 additions and 35 deletions
+62 -13
View File
@@ -54,8 +54,8 @@ in
# };
};
nixGL.packages = pkgs.nixgl;
nixGL.defaultWrapper = "nvidia";
targets.genericLinux.nixGL.packages = pkgs.nixgl;
targets.genericLinux.nixGL.defaultWrapper = "nvidia";
home.username = username;
@@ -65,7 +65,7 @@ in
home.packages = with pkgs; [
android-tools
android-udev-rules
kdePackages.kdeconnect-kde
# TODO: Move from system to nix
# awscli2
# kubectl
@@ -73,6 +73,16 @@ in
tcpdump
];
home.file = {
"${homedir}/.gnupg/gpg-agent.conf" = {
text = ''
default-cache-ttl 34560000
max-cache-ttl 34560000
pinentry-program ${pkgs.pinentry-curses}/bin/pinentry
'';
};
};
xdg.configFile = lib.mkMerge [
{
"ghostty/config" = {
@@ -89,7 +99,7 @@ in
}
];
# TODO: Manual ghostty injection
# TODO: Manual ghostty injectionF
programs.bat.syntaxes.ghostty = {
src = pkgs.ghostty;
file = "share/bat/syntaxes/ghostty.sublime-syntax";
@@ -99,15 +109,11 @@ in
programs.git = {
enable = true;
userName = "Arnie";
userEmail = "i@cechis.cz";
ignores = [
".vscode"
".direnv"
".devenv"
".envrc"
];
extraConfig = {
settings = {
user = {
name = "Arnie";
email = "i@cechis.cz";
};
core = {
autocrlf = "input";
# TODO: Provide through nix
@@ -119,6 +125,36 @@ in
init.defaultBranch = "main";
};
ignores = [
".vscode"
".direnv"
".devenv"
".envrc"
];
signing = {
signByDefault = true;
key = "892F43F4";
};
};
# Generate key wth gpg --full-gen-key
# Kind of key: 10 ECC sign only, curve 25519
# Real name: <username>
# Email address: <email>
# Add to git: gpg --list-secret-keys --keyid-format SHORT
# get the bit after the key kind and put it in the signing.key in git config above
# gpg --armor --export <KEY> and add to git account
programs.gpg = {
enable = true;
settings = {
use-agent = true;
};
mutableKeys = false;
publicKeys = [ ];
};
# Can't use the nixgl wrapper due to GTK libraries
@@ -217,6 +253,19 @@ in
"Switch One Desktop to the Left" = "none";
"Edit Tiles" = "none";
# "MoveMouseToCenter" = "Meta+F6,Meta+F6,Move Mouse to Center";
"MoveMouseToCenter" = "none";
# "MoveMouseToFocus" = "Meta+F5,Meta+F5,Move Mouse to Focus";
"MoveMouseToFocus" = "none";
# "Switch to Screen 0" = "none,,Switch to Screen 0";
"Switch to Screen 0" = "Meta+Ctrl+Alt+0";
# "Switch to Screen 1" = "none,,Switch to Screen 1";
"Switch to Screen 1" = "Meta+Ctrl+Alt+1";
# "Switch to Screen 2" = "none,,Switch to Screen 2";
"Switch to Screen 2" = "Meta+Ctrl+Alt+2";
};
plasmashell = {
+1 -1
View File
@@ -29,7 +29,7 @@
echo "Commands:"
echo -n '${
builtins.toJSON (
builtins.mapAttrs (s: value: value.description) self.devShells.${pkgs.system}.default.config.scripts
builtins.mapAttrs (s: value: value.description) self.devShells.${pkgs.stdenv.hostPlatform.system}.default.config.scripts
)
}' | \
${pkgs.jq}/bin/jq -r 'to_entries | map(" \(.key)\n" + " - \(if .value == "" then "no description provided" else .value end)") | "" + .[]'