2 Commits

Author SHA1 Message Date
536f0d8672 -repl-flakes, fix:homeConfiguration module 2024-11-25 09:47:28 +01:00
6139657197 video12 2024-10-05 06:46:12 +02:00
7 changed files with 52 additions and 8 deletions

View File

@ -67,7 +67,7 @@
"m3tam3re@m3-kratos-vm" = home-manager.lib.homeManagerConfiguration { "m3tam3re@m3-kratos-vm" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = {inherit inputs outputs;}; extraSpecialArgs = {inherit inputs outputs;};
modules = [./home/m3tam3re/m3tam3re.nix]; modules = [./home/m3tam3re/m3-kratos.nix];
}; };
}; };
}; };

View File

@ -1,4 +1,10 @@
{ config, lib, outputs, pkgs, ... }: { {
config,
lib,
outputs,
pkgs,
...
}: {
nixpkgs = { nixpkgs = {
# You can add overlays here # You can add overlays here
overlays = [ overlays = [
@ -29,7 +35,7 @@
nix = { nix = {
package = lib.mkDefault pkgs.nix; package = lib.mkDefault pkgs.nix;
settings = { settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ]; experimental-features = ["nix-command" "flakes"];
warn-dirty = false; warn-dirty = false;
}; };
}; };

View File

@ -22,6 +22,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
coreutils coreutils
fd fd
gcc
htop htop
httpie httpie
jq jq

View File

@ -26,6 +26,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
kitty kitty
wofi wofi
zellij-ps
# # Adds the 'hello' command to your environment. It prints a friendly # # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run. # # "Hello, world!" when run.
# pkgs.hello # pkgs.hello

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
# Define your custom packages here # Define your custom packages here
# my-package = pkgs.callPackage ./my-package {}; zellij-ps = pkgs.callPackage ./zellij-ps {};
} }

View File

@ -1,2 +0,0 @@
# Your custom nix-package
# ...

View File

@ -0,0 +1,39 @@
{
lib,
fish,
fd,
fzf,
makeWrapper,
zellij,
fetchFromGitea,
stdenv,
}:
stdenv.mkDerivation {
pname = "zellij-ps";
version = "0.1.0";
src = fetchFromGitea {
domain = "code.m3tam3re.com";
owner = "m3tam3re";
repo = "helper-scripts";
rev = "08a3217b83391c1110545c1ee3161eecd5dbe5e9";
sha256 = "1sc4i58mwcg3qsq0wwl5rvk08ykbxc497bq7mrxiirndsarskby7";
};
buildInputs = [];
nativeBuildInputs = [makeWrapper];
installPhase = ''
mkdir -p $out/bin
cp zellij-ps.fish $out/bin/zellij-ps
wrapProgram $out/bin/zellij-ps \
--prefix PATH : ${lib.makeBinPath [fish fd fzf zellij]}
'';
meta = with lib; {
description = "A small project script for zellij";
homepage = "https://code.m3tam3re.com/m3tam3re/helper-scripts";
license = licenses.mit;
maintainers = with maintainers; [m3tam3re];
platforms = platforms.unix;
};
}