diff --git a/.gitignore b/.gitignore index f18494c..6438daa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # ---> Nix .direnv +# ---> qemu +virtualBoyy.qcow2 + # ---> C # Prerequisites *.d diff --git a/VM/default.nix b/VM/default.nix deleted file mode 100644 index e7394e6..0000000 --- a/VM/default.nix +++ /dev/null @@ -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? -} diff --git a/VM/home.nix b/VM/home.nix deleted file mode 100644 index 20ad743..0000000 --- a/VM/home.nix +++ /dev/null @@ -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"; -} diff --git a/flake.nix b/flake.nix index 040496f..5dda341 100644 --- a/flake.nix +++ b/flake.nix @@ -55,22 +55,6 @@ 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"; @@ -80,7 +64,7 @@ -nographic \ -m 8G \ -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 { diff --git a/src/main.c b/src/main.c index 3b60904..3547b35 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ #include -#include + int main(void){ - printf(TEST); + printf("asdf asdfa"); }