🗑️」 clean: cleaned project.

This commit is contained in:
2025-08-11 14:17:41 +02:00
parent b806b1bcd0
commit 8c533e2741
5 changed files with 6 additions and 152 deletions

3
.gitignore vendored
View File

@ -1,6 +1,9 @@
# ---> Nix # ---> Nix
.direnv .direnv
# ---> qemu
virtualBoyy.qcow2
# ---> C # ---> C
# Prerequisites # Prerequisites
*.d *.d

View File

@ -1,78 +0,0 @@
{
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?
}

View File

@ -1,55 +0,0 @@
{
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";
}

View File

@ -55,22 +55,6 @@
apps = forEachSupportedSystem ( apps = forEachSupportedSystem (
{ pkgs, system }: { 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 = virtualBoyy-headless =
let let
scriptName = "run-virtualBoyy-vm-headless"; scriptName = "run-virtualBoyy-vm-headless";
@ -80,7 +64,7 @@
-nographic \ -nographic \
-m 8G \ -m 8G \
-smp 4 \ -smp 4 \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd),mount_tag=host0,security_model=mapped-xattr,id=host0 -virtfs local,path=$(${pkgs.coreutils}/bin/pwd),mount_tag=host0,id=host0,security_model=none
''; '';
in in
{ {

View File

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