scarab init

This commit is contained in:
stitchy 2024-03-31 08:40:08 +00:00
parent 238866e5f1
commit a8b23e0189
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
2 changed files with 75 additions and 0 deletions

View file

@ -28,6 +28,17 @@
}
];
};
scarab = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
{ _module.args = { inherit inputs; }; }
(import "${inputs.mobile-nixos}/lib/configuration.nix" {
device = "oneplus-enchilada";
})
./packages/default.nix
./hosts/scarab/default.nix
];
};
lappy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };

64
hosts/scarab/default.nix Normal file
View file

@ -0,0 +1,64 @@
{ 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";
}