1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-13 04:04:35 +03:00
mobile-nixos/examples/phosh/configuration.nix
Samuel Dionne-Riel 40ce3bbeaf examples/phosh: Break out generic config in discrete file
This file is now public API, and can be imported by end-user
configurations.
2022-10-12 18:17:50 -04:00

32 lines
506 B
Nix

{ config, lib, pkgs, ... }:
let
inherit (lib) mkForce;
system_type = config.mobile.system.type;
defaultUserName = "alice";
in
{
imports = [
./phosh.nix
];
config = {
users.users."${defaultUserName}" = {
isNormalUser = true;
password = "1234";
extraGroups = [
"dialout"
"feedbackd"
"networkmanager"
"video"
"wheel"
];
};
services.xserver.desktopManager.phosh = {
user = defaultUserName;
};
};
}