🏗️」 wip: work in progress, not done yet.

This commit is contained in:
2025-08-11 13:24:24 +02:00
parent 3625f94c03
commit e426bf83c9
11 changed files with 988 additions and 14 deletions

0
.envrc Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

30
Makefile Normal file → Executable file
View File

@ -1,14 +1,21 @@
SHELL = bash
NAME = ft_ping
CC = clang
OBJSDIR = obj/
OBJSDIR = obj
SRCS = $(shell find . -name '*.cpp')
SRCDIR = src
OBJS = $(addprefix $(OBJSDIR), $(SRCS:.cpp=.o))
INCLUDES = includes
SRCS = $(shell find $(SRCDIR) -name *.c)
OBJS = $(SRCS:$(SRCDIR)/%.c=$(OBJSDIR)/%.o)
DEPS = $(SRCS:$(SRCDIR)/%.c=$(OBJSDIR)/%.d)
# $(info OBJ $(OBJS))
# $(info SRC $(SRCS))
FLAGS = -Wall -Werror -Wextra -MMD -MP -g
@ -26,23 +33,24 @@ endif
all: $(NAME)
$(NAME): $(OBJS)
@$(CC) $(FLAGS) -I . $(OBJS) -o $(NAME)
@$(CC) $(FLAGS) $(OBJS) -o $(NAME)
@printf "$(YELLOW)「✨」($(NAME)) Program compiled\n"
$(OBJSDIR)%.o: %.cpp
$(OBJSDIR)/%.o: $(SRCDIR)/%.c
@mkdir -p $(@D)
@$(CC) $(FLAGS) -I . -c $< -o $@
@$(CC) $(FLAGS) -I $(INCLUDES) -c $< -o $@
@printf "$(DELETE)$(GREEN)「🔨」($<) Object compiled\n"
clean:
@rm -f $(OBJS)
@printf "$(DELETE)$(RED)「🗑️」($(OBJS)) Object deleted\n"
@rm -rf $(OBJSDIR)
@printf "$(DELETE)$(RED)「🗑️」($(OBJSDIR)) Object deleted\n"
fclean: clean
@rm -f $(NAME)
@rm -Rf $(OBJSDIR)
@printf "$(RED)「🗑️」($(NAME)) Program deleted\n"
re: fclean all
.PHONY: clean fclean all re
-include $(DEPS)

0
README.md Normal file → Executable file
View File

78
VM/default.nix Executable file
View File

@ -0,0 +1,78 @@
{
pkgs,
modulesPath,
lib,
inputs,
outputs,
self,
...
}:
{
imports = [
(modulesPath + "/profiles/minimal.nix")
];
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PermitRootLogin = "yes";
PasswordAuthentication = true;
AllowUsers = null;
};
};
networking.hostName = "virtualBoyy";
keyzox = {
defaults = true;
# wm = true;
theme.enable = true;
boot = lib.mkForce false;
};
systemd.services.mount-work = {
description = "Mount the shared folder";
# fstab entry:
# host0 /wherever 9p trans=virtio,version=9p2000.L 0 0
script = ''
mkdir -p /work
/run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /work
'';
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
};
users.users.adjoly = {
shell = pkgs.zsh;
isNormalUser = true;
initialPassword = "kanelthego@t";
extraGroups = [
"docker"
"audio"
"video"
"input"
"networkmanager"
"wheel"
"sudo"
];
};
home-manager = {
useUserPackages = lib.mkDefault true;
extraSpecialArgs = { inherit inputs outputs self; };
users.adjoly = import (./home.nix);
};
programs.zsh.enable = true;
nix.settings.trusted-users = [ "@wheel" ];
system.stateVersion = "25.05"; # Did you read the comment?
}

55
VM/home.nix Executable file
View File

@ -0,0 +1,55 @@
{
self,
lib,
pkgs,
inputs,
...
}:
{
imports = [
inputs.keyzconf.homeModules.default
];
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
overlays = [
(final: prev: {
unstable = import inputs.unstablepkgs {
system = pkgs.system;
config.allowUnfree = true;
};
})
];
};
keyzox = {
# gui.enable = true;
cli.enable = true;
shell.nixos.enable = true;
# hyprland.autostart.enable = true;
# bitwarden-ssh-agent.enable = true;
# theme.enable = true;
# hypridle.enable = lib.mkForce false;
# hyprlock.enable = lib.mkForce false;
# nextcloud.enable = lib.mkForce false;
# wl-sunset.enable = lib.mkForce false;
# gui-app.enable = lib.mkForce false;
};
home.packages = with pkgs; [
# firefox
# discord
# gearlever
# inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
# xfce.thunar
];
programs.kitty.font.size = 13; # for kitty
home.stateVersion = "25.05";
}

784
flake.lock generated Normal file → Executable file
View File

@ -1,6 +1,532 @@
{
"nodes": {
"catppuccin": {
"inputs": {
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754375421,
"narHash": "sha256-iJ955VTkw83f6xBWaCIyTvdvk0yJUzW7tZYcAsfXYCw=",
"owner": "catppuccin",
"repo": "nix",
"rev": "ddf38fd5773ca3044d27a6bfdcc2c7b6d52861d9",
"type": "github"
},
"original": {
"owner": "catppuccin",
"ref": "release-25.05",
"repo": "nix",
"type": "github"
}
},
"crane": {
"locked": {
"lastModified": 1731098351,
"narHash": "sha256-HQkYvKvaLQqNa10KEFGgWHfMAbWBfFp+4cAgkut+NNE=",
"owner": "ipetkov",
"repo": "crane",
"rev": "ef80ead953c1b28316cc3f8613904edc2eb90c28",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"disko": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1753140376,
"narHash": "sha256-7lrVrE0jSvZHrxEzvnfHFE/Wkk9DDqb+mYCodI5uuB8=",
"owner": "nix-community",
"repo": "disko",
"rev": "545aba02960caa78a31bd9a8709a0ad4b6320a5c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "disko",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1747046372,
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"keyzconf",
"lanzaboote",
"nixpkgs"
]
},
"locked": {
"lastModified": 1730504689,
"narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "506278e768c2a08bec68eb62932193e341f55c90",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"keyzconf",
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754091436,
"narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1751413152,
"narHash": "sha256-Tyw1RjYEsp5scoigs1384gIg6e0GoBVjms4aXFfRssQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "77826244401ea9de6e3bac47c2db46005e1f30b5",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_4": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1722555600,
"narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "8471fe90ad337a8074e957b69ca4d0089218391d",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"keyzconf",
"lanzaboote",
"pre-commit-hooks-nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1753592768,
"narHash": "sha256-oV695RvbAE4+R9pcsT9shmp6zE/+IZe6evHWX63f2Qg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "fc3add429f21450359369af74c2375cb34a2d204",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.05",
"repo": "home-manager",
"type": "github"
}
},
"home-manager_2": {
"inputs": {
"nixpkgs": [
"keyzconf",
"zen-browser",
"nixpkgs"
]
},
"locked": {
"lastModified": 1752603129,
"narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"hyprland-contrib": {
"inputs": {
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1753252360,
"narHash": "sha256-PFAJoEqQWMlo1J+yZb+4HixmhbRVmmNl58e/AkLYDDI=",
"owner": "hyprwm",
"repo": "contrib",
"rev": "6839b23345b71db17cd408373de4f5605bf589b8",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "contrib",
"type": "github"
}
},
"ixx": {
"inputs": {
"flake-utils": [
"keyzconf",
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"keyzconf",
"nixvim",
"nuschtosSearch",
"nixpkgs"
]
},
"locked": {
"lastModified": 1748294338,
"narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=",
"owner": "NuschtOS",
"repo": "ixx",
"rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"ref": "v0.0.8",
"repo": "ixx",
"type": "github"
}
},
"keyzconf": {
"inputs": {
"catppuccin": "catppuccin",
"disko": "disko",
"home-manager": "home-manager",
"hyprland-contrib": "hyprland-contrib",
"lanzaboote": "lanzaboote",
"nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"pogit": "pogit",
"randomTimer": "randomTimer",
"timmy": "timmy",
"unstablepkgs": "unstablepkgs",
"zen-browser": "zen-browser"
},
"locked": {
"lastModified": 1754910669,
"narHash": "sha256-X4oTBjFWgkTC79mR98Dei1fVXzw/r5WFDURFwic7YhU=",
"owner": "keyzox71",
"repo": "nixos-config",
"rev": "660eccba485f33623d752a4eab7c7bd9307349e2",
"type": "github"
},
"original": {
"owner": "keyzox71",
"repo": "nixos-config",
"type": "github"
}
},
"lanzaboote": {
"inputs": {
"crane": "crane",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"nixpkgs": [
"keyzconf",
"nixpkgs"
],
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1737639419,
"narHash": "sha256-AEEDktApTEZ5PZXNDkry2YV2k6t0dTgLPEmAZbnigXU=",
"owner": "nix-community",
"repo": "lanzaboote",
"rev": "a65905a09e2c43ff63be8c0e86a93712361f871e",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "v0.4.2",
"repo": "lanzaboote",
"type": "github"
}
},
"nixlib": {
"locked": {
"lastModified": 1736643958,
"narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixos-generators": {
"inputs": {
"nixlib": "nixlib",
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1751903740,
"narHash": "sha256-PeSkNMvkpEvts+9DjFiop1iT2JuBpyknmBUs0Un0a4I=",
"owner": "nix-community",
"repo": "nixos-generators",
"rev": "032decf9db65efed428afd2fa39d80f7089085eb",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-generators",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1736609484,
"narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=",
"owner": "keyzox71",
"repo": "nixos-hardware",
"rev": "60da09f3e781d83d4f05a669b6d516c6bdb9b21c",
"type": "github"
},
"original": {
"owner": "keyzox71",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixos-wsl": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1754326498,
"narHash": "sha256-3ynDaygIzQYlBZFHGDeQzXmPkX2ILeZ0wWJ84FR4g7E=",
"owner": "nix-community",
"repo": "NixOS-WSL",
"rev": "ca55236cd9ef3cdea29b51a0b52a9402c60e9a27",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "main",
"repo": "NixOS-WSL",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752596105,
"narHash": "sha256-lFNVsu/mHLq3q11MuGkMhUUoSXEdQjCHvpReaGP1S2k=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dab3a6e781554f965bde3def0aa2fda4eb8f1708",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1751159883,
"narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "14a40a1d7fb9afa4739275ac642ed7301a9ba1ab",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1722555339,
"narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1730741070,
"narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d063c1dd113c91ab27959ba540c0d9753409edf3",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1754214453,
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1754292888,
"narHash": "sha256-1ziydHSiDuSnaiPzCQh1mRFBsM2d2yRX9I+5OPGEmIE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ce01daebf8489ba97bd1609d185ea276efdeb121",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1754725699,
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
@ -16,9 +542,265 @@
"type": "github"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"keyzconf",
"nixpkgs"
],
"nuschtosSearch": "nuschtosSearch",
"systems": "systems_2"
},
"locked": {
"lastModified": 1754397955,
"narHash": "sha256-4hQT8mDSRNgPKiPdpYwr2QVJdA4FaUhOjT2lKkW8QHQ=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "8d47a07563120b36af149edf2273034563339a91",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixvim",
"type": "github"
}
},
"nuschtosSearch": {
"inputs": {
"flake-utils": "flake-utils",
"ixx": "ixx",
"nixpkgs": [
"keyzconf",
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754301638,
"narHash": "sha256-aRgzcPDd2axHFOuMlPLuzmDptUM2JU8mUL3jfgbBeyc=",
"owner": "NuschtOS",
"repo": "search",
"rev": "a60091045273484c040a91f5c229ba298f8ecc27",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"repo": "search",
"type": "github"
}
},
"pogit": {
"inputs": {
"flake-parts": "flake-parts_3",
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1752560492,
"narHash": "sha256-0x6S6Ea4FxRDlKqvXeAJpYQ6N7KYKMNUtm/dUx4kSrE=",
"owner": "y-syo",
"repo": "pogit",
"rev": "28c74d71e0accb7677d36ad807191a041671bbda",
"type": "github"
},
"original": {
"owner": "y-syo",
"repo": "pogit",
"type": "github"
}
},
"pogit_2": {
"inputs": {
"flake-parts": "flake-parts_4",
"nixpkgs": [
"keyzconf",
"timmy",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733081261,
"narHash": "sha256-ID6TNNKUYxJFb4WHUJmE1rZYE/sgNlAovoCVSg79ZBc=",
"owner": "y-syo",
"repo": "pogit",
"rev": "5f46ab7117d5d71aecbda35aac3d1d4572a5651d",
"type": "github"
},
"original": {
"owner": "y-syo",
"repo": "pogit",
"type": "github"
}
},
"pre-commit-hooks-nix": {
"inputs": {
"flake-compat": [
"keyzconf",
"lanzaboote",
"flake-compat"
],
"gitignore": "gitignore",
"nixpkgs": [
"keyzconf",
"lanzaboote",
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1731363552,
"narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"randomTimer": {
"inputs": {
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1753110793,
"narHash": "sha256-sytqwPJQYf3OlKvFHxlCbtKOTGEviE99huTnxBf41iQ=",
"owner": "keyzox71",
"repo": "randomTimer",
"rev": "d04d13a10803a7d860485d5a4e6658aee3da6a09",
"type": "github"
},
"original": {
"owner": "keyzox71",
"repo": "randomTimer",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"keyzconf": "keyzconf",
"nixpkgs": "nixpkgs_4"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"keyzconf",
"lanzaboote",
"nixpkgs"
]
},
"locked": {
"lastModified": 1731897198,
"narHash": "sha256-Ou7vLETSKwmE/HRQz4cImXXJBr/k9gp4J4z/PF8LzTE=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "0be641045af6d8666c11c2c40e45ffc9667839b5",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"timmy": {
"inputs": {
"nixpkgs": [
"keyzconf",
"nixpkgs"
],
"pogit": "pogit_2"
},
"locked": {
"lastModified": 1750006897,
"narHash": "sha256-fNZ6x1B9jFakzyRmGfOPOOsfRYCO1SatYhtewQNXlrw=",
"owner": "keyzox71",
"repo": "timmy",
"rev": "fa3f9695ad6496c5b4f07f488d5c47572a37281c",
"type": "github"
},
"original": {
"owner": "keyzox71",
"repo": "timmy",
"type": "github"
}
},
"unstablepkgs": {
"locked": {
"lastModified": 1754214453,
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"zen-browser": {
"inputs": {
"home-manager": "home-manager_2",
"nixpkgs": [
"keyzconf",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754365690,
"narHash": "sha256-je5DVA23UU2RzJB1A7VTNSohPk/FE8HwDJaSK65/UJg=",
"owner": "0xc000022070",
"repo": "zen-browser-flake",
"rev": "ec4909d02fb8c2d3c00ca71ceafb65753b4e3ea6",
"type": "github"
},
"original": {
"owner": "0xc000022070",
"repo": "zen-browser-flake",
"type": "github"
}
}
},

50
flake.nix Normal file → Executable file
View File

@ -3,14 +3,21 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
keyzconf = {
url = "github:keyzox71/nixos-config";
};
};
outputs =
{
inputs@{
nixpkgs,
self,
...
}:
let
inherit (self) outputs;
supportedSystems = [ "x86_64-linux" ];
forEachSupportedSystem =
@ -19,12 +26,13 @@
system:
f {
pkgs = import nixpkgs { inherit system; };
system = system;
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs }:
{ pkgs, system }:
{
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
@ -43,5 +51,43 @@
};
}
);
apps = forEachSupportedSystem (
{ pkgs, system }:
{
virtualBoyy =
let
scriptName = "run-virtualBoyy-vm";
script = pkgs.writeShellScriptBin "${scriptName}" ''
${self.packages.${system}.virtualBoyy { mount-enabled = true; }}/bin/run-virtualBoyy-vm \
-enable-kvm \
-m 8G \
-smp 4 \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd),mount_tag=host0,security_model=mapped-xattr,id=host0
'';
in
{
type = "app";
program = "${script}/bin/${scriptName}";
};
virtualBoyy-headless =
let
scriptName = "run-virtualBoyy-vm-headless";
script = pkgs.writeShellScriptBin "${scriptName}" ''
${inputs.keyzconf.packages.${system}.virtualBoyy { mount-enabled = true; }}/bin/run-virtualBoyy-vm \
-enable-kvm \
-nographic \
-m 8G \
-smp 4 \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd),mount_tag=host0,security_model=mapped-xattr,id=host0
'';
in
{
type = "app";
program = "${script}/bin/${scriptName}";
};
}
);
};
}

BIN
ft_ping Executable file

Binary file not shown.

5
src/main.c Executable file
View File

@ -0,0 +1,5 @@
#include <stdio.h>
#include <test.h>
int main(void){
printf(TEST);
}