nixos/machines/niczos/default.nix

97 lines
2 KiB
Nix
Raw Normal View History

{
config,
...
}:
let
pkgs = import /etc/nixos/pkgs/jailed-packages.nix;
in
{
imports = [
# role
/etc/nixos/roles/desktop.nix
# module
/etc/nixos/modules/security
/etc/nixos/modules/dns.nix
/etc/nixos/modules/nix.nix
2026-08-25 16:10:33 +02:00
/etc/nixos/modules/sops.nix
/etc/nixos/modules/ssl.nix
/etc/nixos/modules/tailscale.nix
/etc/nixos/modules/backup
2026-08-30 18:18:59 +02:00
/etc/nixos/modules/ssh.nix
/etc/nixos/modules/ipfs
# machine-specific config
./bootloader.nix
./hardware-configuration.nix
./hardware.nix
./kernel.nix
./security.nix
./users.nix
];
sops.age.keyFile = "/home/zo/.config/sops/age/keys.txt";
nixpkgs.config.allowUnfree = true;
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"
];
};
};
services.backup = {
"/home/zo/dev" = {
enable = true;
dest = "/tmp/backups/";
};
"/home/zo/Documents" = {
enable = true;
dest = "/tmp/backups/";
};
};
2026-08-17 17:00:44 +02:00
programs = {
steam.enable = true;
fuse.userAllowOther = true;
};
virtualisation.docker = {
enable = true;
storageDriver = "btrfs";
};
environment.systemPackages = [
pkgs.curl
pkgs.wget
pkgs.cryptsetup
pkgs.cachix
];
i18n.defaultLocale = "en_US.UTF-8";
# Precious little secret
sops.secrets.cert_main_key = {
sopsFile = /etc/nixos/ssl/keys/main.yaml;
mode = "0060";
owner = "nobody";
group = "nogroup";
path = "/etc/ssl/keys/main.pem";
};
system.copySystemConfiguration = true;
system.stateVersion = "26.05";
}