🏗️」 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

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";
}