enable module system for artemis

This commit is contained in:
Osman Faruk Bayram 2025-10-23 22:14:43 +03:00
parent b808e9e6e7
commit 64f58e8b5f

View file

@ -1,62 +1,28 @@
{ {
inputs, inputs,
pkgs, pkgs,
lib,
... ...
}: }:
{ {
imports = [ imports = [
(import "${inputs.mobile-nixos}/lib/configuration.nix" { device = "oneplus-enchilada"; }) (import "${inputs.mobile-nixos}/lib/configuration.nix" { device = "oneplus-enchilada"; })
../../../modules/nixos
]; ];
# Allow unfree packages (needed for OnePlus firmware) osbmModules = {
nixpkgs.config.allowUnfree = true; desktopEnvironment = "gnome";
machineType = "mobile";
hardware.systemd-boot.enable = false; # Mobile devices use different bootloader
programs.graphical.enable = false;
};
# Enable SSH server (essential for mobile device access) # mobile-nixos needs aliases (uses nettools instead of net-tools)
services.openssh.enable = true; nixpkgs.config.allowAliases = true;
services.openssh.settings.PermitRootLogin = "yes"; # For initial setup
services.openssh.settings.PasswordAuthentication = true; # For initial setup
# Set root password for SSH access nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
users.users.root.password = "nixtheplanet"; "oneplus-sdm845-firmware-zstd"
"oneplus-sdm845-firmware"
# Enable GNOME Desktop Environment
services.xserver.enable = true;
services.desktopManager.gnome.enable = true;
services.displayManager.gdm.enable = true;
# Enable GNOME Keyring for password management
services.gnome.gnome-keyring.enable = true;
# Enable dconf for GNOME settings
programs.dconf.enable = true;
# Remove unwanted GNOME applications
environment.gnome.excludePackages = with pkgs; [
baobab # disk usage analyzer
cheese # photo booth
eog # image viewer
epiphany # web browser
simple-scan # document scanner
totem # video player
yelp # help viewer
evince # document viewer
file-roller # archive manager
geary # email client
seahorse # password manager
gnome-calculator
gnome-calendar
gnome-characters
gnome-clocks
gnome-contacts
gnome-font-viewer
gnome-logs
gnome-maps
gnome-music
gnome-screenshot
gnome-system-monitor
gnome-weather
gnome-disk-utility
pkgs.gnome-connections
]; ];
# Minimal essential packages # Minimal essential packages