Motiejus Jakštys
e1b782a3c6
did not test samba and headscale yet https://github.com/juanfont/headscale/issues/2210#issuecomment-2480130747
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
self,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
"${modulesPath}/profiles/all-hardware.nix"
|
|
"${modulesPath}/installer/cd-dvd/iso-image.nix"
|
|
];
|
|
|
|
mj = {
|
|
stateVersion = "24.05";
|
|
timeZone = "UTC";
|
|
username = "nixos";
|
|
|
|
base.users = {
|
|
enable = true;
|
|
user.initialHashedPassword = "";
|
|
root.initialHashedPassword = "";
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
supportedFilesystems = [
|
|
"zfs"
|
|
"btrfs"
|
|
];
|
|
};
|
|
|
|
isoImage = {
|
|
isoName = "toolshed-${self.lastModifiedDate}.iso";
|
|
squashfsCompression = "zstd";
|
|
appendToMenuLabel = " Toolshed ${self.lastModifiedDate}";
|
|
makeEfiBootable = true; # EFI booting
|
|
makeUsbBootable = true; # USB booting
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
services = {
|
|
getty.autologinUser = "nixos";
|
|
xserver.autorun = false;
|
|
autorandr.enable = true;
|
|
};
|
|
|
|
security.pam.services.lightdm.text = ''
|
|
auth sufficient pam_succeed_if.so user ingroup wheel
|
|
'';
|
|
|
|
networking = {
|
|
hostName = "vm";
|
|
domain = "jakstys.lt";
|
|
firewall.allowedTCPPorts = [ 22 ];
|
|
hostId = "abefef01";
|
|
};
|
|
}
|