{ config, ... }: let sources = import ./npins/default.nix; jail-nix = import sources."jail.nix" { }; jailOverlay = final: prev: jail-nix.mkOverlay { inherit final prev; packages = combinators: with combinators; { firefox = [ network gui gpu ]; }; }; pkgs = import sources.nixpkgs { overlays = [ jailOverlay ]; }; 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; }; 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" ]; }; }; environment.systemPackages = with pkgs; [ curl wget cryptsetup cachix ]; 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 ]; nix.settings.substituters = [ "https://nix-community.cachix.org" ]; nix.settings.trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; system.copySystemConfiguration = true; system.stateVersion = "26.05"; # Not here to update, here for data models backward compatibility. Don't change. }