mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-03-02 10:52:48 +01:00
Compare commits
4 commits
4cc87ea1d6
...
31eb5f813f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31eb5f813f |
||
|
|
a057b68280 |
||
|
|
5463ce39cf |
||
|
|
596b79861e |
10 changed files with 76 additions and 25 deletions
|
|
@ -68,6 +68,8 @@ with builtins;
|
|||
ungoogled-chromium
|
||||
scc
|
||||
speedtest-rs
|
||||
|
||||
(pkgs.callPackage ./programs/edname.nix {})
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
devices."AT Translated Set 2 keyboard" = default;
|
||||
devices."Razer Razer Huntsman" = default;
|
||||
devices."Razer Razer DeathAdder V2" = default;
|
||||
devices."Microsoft Microsoft Ergonomic Keyboard" = default;
|
||||
};
|
||||
|
||||
hardware.trackpoint = {
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@
|
|||
];
|
||||
programs = {
|
||||
wireshark.enable = true;
|
||||
wireshark.package = pkgs.wireshark-qt;
|
||||
seahorse.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
|||
9
justfile
9
justfile
|
|
@ -1,12 +1,15 @@
|
|||
upgrade: update build
|
||||
|
||||
test:
|
||||
init-live:
|
||||
touch ~/.config/niri/live.kdl
|
||||
|
||||
test: init-live
|
||||
sudo nixos-rebuild test --flake . --log-format multiline
|
||||
|
||||
build:
|
||||
build: init-live
|
||||
sudo nixos-rebuild switch --flake . --log-format multiline
|
||||
|
||||
tbuild:
|
||||
tbuild: init-live
|
||||
sudo nixos-rebuild switch --flake . --no-reexec --log-format multiline-with-logs --show-trace
|
||||
|
||||
update:
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
pkgs.bemoji
|
||||
pkgs.librsvg
|
||||
pkgs.cairo
|
||||
pkgs.xwayland-satellite
|
||||
];
|
||||
|
||||
services.gpg-agent = {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
# else it will be ugly
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
zenity
|
||||
xwayland-satellite
|
||||
];
|
||||
home.file."config" =
|
||||
let
|
||||
kdlfiles =
|
||||
|
|
@ -10,23 +14,9 @@
|
|||
|> lib.mapAttrsToList (filename: _value: "include \"${./kdl}/${filename}\"");
|
||||
startups =
|
||||
[
|
||||
[
|
||||
"eww"
|
||||
"open-many"
|
||||
"topBar"
|
||||
"bottomBar"
|
||||
]
|
||||
[
|
||||
"${pkgs.swaybg}/bin/swaybg"
|
||||
"-i"
|
||||
"${./wallpaper.jpg}"
|
||||
"-m"
|
||||
"fill"
|
||||
]
|
||||
[
|
||||
"touch"
|
||||
".config/niri/live.kdl"
|
||||
]
|
||||
[ "eww" "open-many" "topBar" "bottomBar" ]
|
||||
[ "${pkgs.swaybg}/bin/swaybg" "-i" "${./wallpaper.jpg}" "-m" "fill" ]
|
||||
[ "touch" ".config/niri/live.kdl" ]
|
||||
]
|
||||
|> map (map (word: "\"${word}\""))
|
||||
|> map (lib.concatStringsSep " ")
|
||||
|
|
|
|||
|
|
@ -23,10 +23,20 @@ window-rule {
|
|||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="vesktop" is-floating=true title="vesktop"
|
||||
geometry-corner-radius 5
|
||||
match app-id="chromium-browser"
|
||||
geometry-corner-radius 6 6 1 1
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="vesktop" is-floating=true
|
||||
geometry-corner-radius 6
|
||||
}
|
||||
|
||||
environment {
|
||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="zenity"
|
||||
geometry-corner-radius 16
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
screenshot-path "~/Pictures/screenshots/%Y-%m-%dT%H:%M:%S.png"
|
||||
binds {
|
||||
Ctrl+Print { screenshot-screen; }
|
||||
Mod+Ctrl+S { screenshot-screen; }
|
||||
Mod+Shift+S { screenshot-window; }
|
||||
Shift+Print { screenshot-window; }
|
||||
Mod+S { screenshot; }
|
||||
Print { screenshot; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
{
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
package = pkgs.btop-rocm;
|
||||
settings = {
|
||||
shown_boxes = "cpu mem net proc gpu0";
|
||||
color_theme = "gruvbox_dark";
|
||||
|
|
|
|||
45
programs/edname.nix
Normal file
45
programs/edname.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
stdenv,
|
||||
coreutils,
|
||||
findutils,
|
||||
gnused,
|
||||
lib,
|
||||
fetchFromGitea,
|
||||
makeWrapper,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "edname";
|
||||
version = "1.0.2";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.tudbut.de";
|
||||
owner = "TudbuT";
|
||||
repo = "edname";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-8aT/xwdx/ORyCFfOu4LZuxUiErZ9ZiCdhJ/WKAiQwe0=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp edname.sh "$out/bin/edname"
|
||||
wrapProgram "$out/bin/edname" \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
findutils
|
||||
gnused
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mass renamer using $EDITOR";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.tudbut ];
|
||||
homepage = "https://git.tudbut.de/TudbuT/edname";
|
||||
mainProgram = "edname";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue