enable module system for artemis
This commit is contained in:
parent
b808e9e6e7
commit
64f58e8b5f
1 changed files with 13 additions and 47 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue