nixos/configuration.nix
2026-07-11 19:38:30 +02:00

106 lines
2 KiB
Nix

{
config,
...
}:
let
pkgs = import ./jailed-packages.nix;
more_pkgs = {
rayfish = pkgs.callPackage ./pkgs/rayfish.nix { };
};
in
{
imports = [
./security.nix
./hardware-configuration.nix
./hardware.nix
./bootloader.nix
./kernel.nix
./nix.nix
./users.nix
];
programs.fuse.userAllowOther = true;
networking.hostName = "niczos";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
virtualisation = {
waydroid = {
enable = true;
package = pkgs.waydroid-nftables.unjailed;
};
docker = {
enable = true;
storageDriver = "btrfs";
};
};
programs.steam.enable = true;
services.pipewire = {
enable = true;
audio.enable = true;
pulse.enable = true;
alsa = {
enable = true;
};
wireplumber.enable = true;
};
security = {
rtkit.enable = true;
wrappers = {
waydroid = {
source = "${pkgs.waydroid}/bin/waydroid";
capabilities = "cap_net_admin=ep";
enable = true;
owner = "root";
group = "root";
program = "waydroid";
};
};
};
systemd = {
defaultUnit = "graphical.target";
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"
];
};
packages = [
more_pkgs.rayfish
];
};
environment.systemPackages = with pkgs; [
curl
wget
cryptsetup
cachix
more_pkgs.rayfish
];
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
font-awesome
];
system.copySystemConfiguration = true;
system.stateVersion = "26.05"; # Not here to update, here for data models backward compatibility. Don't change.
}