scarab init
This commit is contained in:
		
							parent
							
								
									238866e5f1
								
							
						
					
					
						commit
						a8b23e0189
					
				
					 2 changed files with 75 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
									
								
							
							
						
						
									
										64
									
								
								hosts/scarab/default.nix
									
										
									
									
									
										Normal 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";
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue