2026-08-01 20:29:56 +02:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
let
|
|
|
|
|
pkgs = import /etc/nixos/pkgs/jailed-packages.nix;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
2026-08-05 16:37:32 +02:00
|
|
|
# role
|
|
|
|
|
/etc/nixos/roles/desktop.nix
|
|
|
|
|
|
|
|
|
|
# module
|
2026-08-08 19:30:07 +02:00
|
|
|
/etc/nixos/modules/nix.nix
|
|
|
|
|
/etc/nixos/modules/security.nix
|
2026-08-05 16:37:32 +02:00
|
|
|
/etc/nixos/modules/ssl.nix
|
2026-08-08 19:30:07 +02:00
|
|
|
/etc/nixos/modules/tailscale.nix
|
2026-08-19 11:26:13 +02:00
|
|
|
/etc/nixos/modules/backup
|
2026-08-05 16:37:32 +02:00
|
|
|
|
|
|
|
|
# machine-specific config
|
2026-08-01 20:29:56 +02:00
|
|
|
./bootloader.nix
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./hardware.nix
|
|
|
|
|
./kernel.nix
|
|
|
|
|
./security.nix
|
|
|
|
|
./users.nix
|
|
|
|
|
];
|
|
|
|
|
|
2026-08-08 19:30:07 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2026-08-01 20:29:56 +02:00
|
|
|
nix.nixPath = [
|
|
|
|
|
"nixos-config=/etc/nixos/machines/niczos/default.nix"
|
|
|
|
|
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
|
|
|
|
"/nix/var/nix/profiles/per-user/root/channels"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "niczos";
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
systemd = {
|
|
|
|
|
services."getty@tty1" = {
|
|
|
|
|
overrideStrategy = "asDropin";
|
|
|
|
|
serviceConfig.ExecStart = [
|
|
|
|
|
""
|
|
|
|
|
"@${pkgs.util-linux}/sbin/agetty agetty --login-program ${config.services.getty.loginProgram} --autologin zo --noclear --keep-baud %I 115200,38400,9600 $TERM"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2026-08-18 15:52:18 +02:00
|
|
|
services.backup = {
|
|
|
|
|
"/home/zo/dev" = {
|
|
|
|
|
enable = true;
|
2026-08-19 11:26:13 +02:00
|
|
|
dest = "/tmp/backups/";
|
2026-08-18 15:52:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home/zo/Documents" = {
|
|
|
|
|
enable = true;
|
2026-08-19 11:26:13 +02:00
|
|
|
dest = "/tmp/backups/";
|
2026-08-18 15:52:18 +02:00
|
|
|
};
|
|
|
|
|
};
|
2026-08-17 17:00:44 +02:00
|
|
|
|
2026-08-01 20:29:56 +02:00
|
|
|
programs = {
|
|
|
|
|
steam.enable = true;
|
|
|
|
|
fuse.userAllowOther = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation.docker = {
|
|
|
|
|
enable = true;
|
|
|
|
|
storageDriver = "btrfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Waydroid configuration
|
|
|
|
|
virtualisation.waydroid = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.waydroid-nftables.unjailed;
|
|
|
|
|
};
|
|
|
|
|
security = {
|
|
|
|
|
wrappers = {
|
|
|
|
|
waydroid = {
|
|
|
|
|
source = "${pkgs.waydroid}/bin/waydroid";
|
|
|
|
|
capabilities = "cap_net_admin=ep";
|
|
|
|
|
enable = true;
|
|
|
|
|
owner = "root";
|
|
|
|
|
group = "root";
|
|
|
|
|
program = "waydroid";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
|
pkgs.curl
|
|
|
|
|
pkgs.wget
|
|
|
|
|
pkgs.cryptsetup
|
|
|
|
|
pkgs.cachix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
system.copySystemConfiguration = true;
|
|
|
|
|
system.stateVersion = "26.05";
|
|
|
|
|
}
|