2026-05-28 11:30:05 +02:00
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page, on
|
|
|
|
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
|
|
|
|
2026-06-15 11:50:02 +02:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2026-05-28 11:30:05 +02:00
|
|
|
|
|
|
|
|
{
|
2026-06-15 11:50:02 +02:00
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./security.nix
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./hardware.nix
|
|
|
|
|
./bootloader.nix
|
|
|
|
|
<home-manager/nixos>
|
|
|
|
|
];
|
2026-05-28 11:30:05 +02:00
|
|
|
|
2026-06-17 19:17:50 +02:00
|
|
|
nix.gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "weekly";
|
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-28 11:30:05 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2026-06-15 11:50:02 +02:00
|
|
|
|
2026-05-28 11:30:05 +02:00
|
|
|
networking.hostName = "niczos"; # Define your hostname.
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
2026-06-15 11:50:02 +02:00
|
|
|
virtualisation = {
|
|
|
|
|
waydroid = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.waydroid-nftables;
|
|
|
|
|
};
|
|
|
|
|
docker = {
|
|
|
|
|
enable = true;
|
|
|
|
|
storageDriver = "btrfs";
|
|
|
|
|
};
|
2026-05-28 11:30:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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";
|
2026-06-15 11:50:02 +02:00
|
|
|
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-05-28 11:30:05 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
users.users.zo = {
|
|
|
|
|
isNormalUser = true;
|
2026-06-15 11:50:02 +02:00
|
|
|
extraGroups = [
|
|
|
|
|
"wheel"
|
|
|
|
|
"audio"
|
|
|
|
|
"video"
|
|
|
|
|
"network"
|
|
|
|
|
"docker"
|
|
|
|
|
];
|
2026-05-28 11:30:05 +02:00
|
|
|
packages = [ pkgs.home-manager ];
|
|
|
|
|
shell = pkgs.bash;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile.
|
|
|
|
|
# You can use https://search.nixos.org/ to find more packages (and options).
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
curl
|
|
|
|
|
wget
|
|
|
|
|
cryptsetup
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
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
|
2026-06-15 11:50:02 +02:00
|
|
|
font-awesome
|
2026-05-28 11:30:05 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Copy the NixOS configuration file and link it from the resulting system
|
|
|
|
|
# (/run/current-system/configuration.nix). This is useful in case you
|
|
|
|
|
# accidentally delete configuration.nix.
|
|
|
|
|
system.copySystemConfiguration = true;
|
|
|
|
|
|
|
|
|
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
|
|
|
|
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
|
|
|
|
#
|
|
|
|
|
# Most users should NEVER change this value after the initial install, for any reason,
|
|
|
|
|
# even if you've upgraded your system to a new NixOS release.
|
|
|
|
|
#
|
|
|
|
|
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
|
|
|
|
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
|
|
|
|
|
# to actually do that.
|
|
|
|
|
#
|
|
|
|
|
# This value being lower than the current NixOS release does NOT mean your system is
|
|
|
|
|
# out of date, out of support, or vulnerable.
|
|
|
|
|
#
|
|
|
|
|
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
|
|
|
|
# and migrated your data accordingly.
|
|
|
|
|
#
|
|
|
|
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
|
|
|
|
system.stateVersion = "26.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|