「🗑️」 clean: cleaned project.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,6 +1,9 @@
|
||||
# ---> Nix
|
||||
.direnv
|
||||
|
||||
# ---> qemu
|
||||
virtualBoyy.qcow2
|
||||
|
||||
# ---> C
|
||||
# Prerequisites
|
||||
*.d
|
||||
|
@ -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?
|
||||
}
|
55
VM/home.nix
55
VM/home.nix
@ -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";
|
||||
}
|
18
flake.nix
18
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
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <test.h>
|
||||
|
||||
int main(void){
|
||||
printf(TEST);
|
||||
printf("asdf asdfa");
|
||||
}
|
||||
|
Reference in New Issue
Block a user