65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
let
|
||
|
|
||
|
defaultUserName = "nixos";
|
||
|
|
||
|
in
|
||
|
{
|
||
|
imports = [ ../default.nix ];
|
||
|
|
||
|
users.users."${defaultUserName}" = {
|
||
|
isNormalUser = true;
|
||
|
password = "1234";
|
||
|
extraGroups = [
|
||
|
"dialout"
|
||
|
"feedbackd"
|
||
|
"networkmanager"
|
||
|
"video"
|
||
|
"wheel"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
mobile = {
|
||
|
beautification = {
|
||
|
silentBoot = lib.mkDefault true;
|
||
|
splash = lib.mkDefault true;
|
||
|
};
|
||
|
boot.stage-1 = {
|
||
|
kernel.useStrictKernelConfig = true;
|
||
|
networking.enable = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.openssh.enable = true;
|
||
|
#services.pipewire = {
|
||
|
# enable = true;
|
||
|
# pulse.enable = true;
|
||
|
#};
|
||
|
services.xserver.desktopManager.phosh = {
|
||
|
enable = true;
|
||
|
user = defaultUserName;
|
||
|
group = "users";
|
||
|
};
|
||
|
|
||
|
#services.xserver.desktopManager.plasma5 = {
|
||
|
# enable = true;
|
||
|
# mobile.enable = true;
|
||
|
#};
|
||
|
|
||
|
programs.firefox.enable = true;
|
||
|
programs.calls.enable = true;
|
||
|
|
||
|
hardware = {
|
||
|
bluetooth.enable = true;
|
||
|
sensor.iio.enable = true;
|
||
|
};
|
||
|
|
||
|
networking.networkmanager.unmanaged = [ "rndis0" "usb0" ];
|
||
|
|
||
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||
|
"oneplus-sdm845-firmware"
|
||
|
"oneplus-sdm845-firmware-xz"
|
||
|
];
|
||
|
system.stateVersion = "23.11";
|
||
|
}
|