Files
ft_ping/VM/default.nix
2025-08-11 13:29:04 +02:00

79 lines
1.5 KiB
Nix

{
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?
}