diff --git a/systems/aarch64-linux/NoMra7/default.nix b/systems/aarch64-linux/NoMra7/default.nix deleted file mode 100644 index 5850afa..0000000 --- a/systems/aarch64-linux/NoMra7/default.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ config, lib, pkgs, ... }: -{ - imports = [ - #./mobile-nixos-branding.nix - #./plasma-mobile.nix - ]; - - # Users - users.users.kb = { - isNormalUser = true; - # Numeric pin makes it **possible** to input on the lockscreen. - password = "1234"; # INSECURE!!! - home = "/home/kb"; - extraGroups = [ - "dialout" - "feedbackd" - "networkmanager" - "video" - "wheel" - ]; - }; - users.users.root.password = "nixos"; # INSECURE!!! - - # Automatically login as defaultUserName. - services.displayManager.autoLogin = { - user = "kb"; - }; - - # Desktop - services.displayManager.autoLogin.enable = true; - services.displayManager.defaultSession = "plasma-mobile"; - services.xserver = { - enable = true; - desktopManager.plasma5.mobile.enable = true; - displayManager.lightdm = { - enable = true; - # Workaround for autologin only working at first launch. - # A logout or session crashing will show the login screen otherwise. - extraSeatDefaults = '' - session-cleanup-script=${pkgs.procps}/bin/pkill -P1 -fx ${pkgs.lightdm}/sbin/lightdm - ''; - }; - }; - services.libinput.enable = true; - - # Audio - services.pipewire.enable = lib.mkDefault true; - services.pulseaudio.enable = lib.mkDefault false; - - - # Networking - networking.hostName = "Ohybke"; - networking.networkmanager.enable = true; - networking.networkmanager.unmanaged = [ "rndis0" "usb0" ]; - networking.wireless.enable = false; - - # Bluetooth - hardware.bluetooth.enable = true; - - # Mobile Configuration - mobile.boot.stage-1.networking.enable = lib.mkDefault true; - mobile.boot.stage-1.kernel.useStrictKernelConfig = lib.mkDefault true; - mobile.beautification = { - silentBoot = lib.mkDefault true; - splash = lib.mkDefault true; - }; - powerManagement.enable = true; - - # SSH Server - services.openssh.enable = true; -} diff --git a/systems/aarch64-linux/NoMra7/mobile-nixos-branding.nix b/systems/aarch64-linux/NoMra7/mobile-nixos-branding.nix deleted file mode 100644 index a402a01..0000000 --- a/systems/aarch64-linux/NoMra7/mobile-nixos-branding.nix +++ /dev/null @@ -1,78 +0,0 @@ -# -# This configuration serves to force Mobile NixOS branding in the -# Plasma Mobile environment at first boot. -# -# This is **not** an example for end-user-centric configuration. -# -{ config, pkgs, ... }: - -let - # This script will run *only once*, even if changed. - # https://develop.kde.org/docs/plasma/scripting/#update-scripts - # This will not work through userSetupScript, it seems that plasma mobile on - # first initialization forcibly resets some of the configurations. - # Running last (ZZZ) ensures it can do whatever initialization it needs to do. - plamoInitialDefaults = pkgs.writeTextDir "share/plasma/shells/org.kde.plasma.phoneshell/contents/updates/ZZZ-Mobile-NixOS-initial-defaults.js" '' - var allDesktops = desktops(); - for (i=0; i