2024-02-04 15:31:33 +02:00
|
|
|
{
|
2024-02-04 16:18:47 +02:00
|
|
|
self,
|
|
|
|
modulesPath,
|
2024-02-04 15:31:33 +02:00
|
|
|
...
|
|
|
|
}: {
|
2024-02-04 16:18:47 +02:00
|
|
|
imports = [
|
|
|
|
"${modulesPath}/profiles/all-hardware.nix"
|
|
|
|
"${modulesPath}/installer/cd-dvd/iso-image.nix"
|
|
|
|
];
|
|
|
|
|
2024-02-04 15:31:33 +02:00
|
|
|
mj = {
|
2024-02-04 16:18:47 +02:00
|
|
|
stateVersion = "23.11";
|
2024-02-04 15:31:33 +02:00
|
|
|
timeZone = "UTC";
|
2024-03-04 14:53:50 +02:00
|
|
|
username = "nixos";
|
2024-03-06 10:33:48 +02:00
|
|
|
|
|
|
|
base.users = {
|
|
|
|
enable = true;
|
|
|
|
user.initialHashedPassword = "";
|
|
|
|
root.initialHashedPassword = "";
|
|
|
|
};
|
2024-02-04 15:31:33 +02:00
|
|
|
};
|
|
|
|
|
2024-03-06 12:51:15 +02:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
2024-03-13 22:03:43 +02:00
|
|
|
boot.supportedFilesystems = ["zfs" "btrfs"];
|
2024-03-06 12:16:11 +02:00
|
|
|
|
2024-02-04 16:18:47 +02:00
|
|
|
isoImage = {
|
2024-02-04 18:16:15 +02:00
|
|
|
isoName = "toolshed-${self.lastModifiedDate}.iso";
|
2024-02-04 16:18:47 +02:00
|
|
|
squashfsCompression = "zstd";
|
|
|
|
appendToMenuLabel = " Toolshed ${self.lastModifiedDate}";
|
|
|
|
makeEfiBootable = true; # EFI booting
|
|
|
|
makeUsbBootable = true; # USB booting
|
2024-02-04 15:31:33 +02:00
|
|
|
};
|
|
|
|
|
2024-02-04 16:18:47 +02:00
|
|
|
swapDevices = [];
|
|
|
|
|
2024-02-04 15:31:33 +02:00
|
|
|
services = {
|
2024-02-04 16:18:47 +02:00
|
|
|
getty.autologinUser = "nixos";
|
2024-03-06 12:01:34 +02:00
|
|
|
xserver.autorun = false;
|
2024-02-04 16:18:47 +02:00
|
|
|
};
|
|
|
|
|
2024-03-06 10:33:48 +02:00
|
|
|
security.pam.services.lightdm.text = ''
|
|
|
|
auth sufficient pam_succeed_if.so user ingroup wheel
|
|
|
|
'';
|
2024-02-04 16:18:47 +02:00
|
|
|
|
2024-02-04 15:31:33 +02:00
|
|
|
networking = {
|
|
|
|
hostName = "vm";
|
2024-02-04 22:28:36 +02:00
|
|
|
domain = "jakstys.lt";
|
2024-02-04 16:18:47 +02:00
|
|
|
firewall.allowedTCPPorts = [22];
|
2024-03-13 22:03:43 +02:00
|
|
|
hostId = "abefef01";
|
2024-02-04 15:31:33 +02:00
|
|
|
};
|
|
|
|
}
|