From 56d125aa0ef554dc41d082c8f8f340c3db2ae5fe Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 30 Dec 2022 15:19:26 +0000 Subject: [PATCH] Add new file --- systems/pinephone.nix | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 systems/pinephone.nix diff --git a/systems/pinephone.nix b/systems/pinephone.nix new file mode 100644 index 0000000..c9cfe18 --- /dev/null +++ b/systems/pinephone.nix @@ -0,0 +1,72 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + (import { device = "pine64-pinephone"; }) + ./hardware-configuration.nix + + ]; + + networking.hostName = "mobile-nixos"; + + # + # Opinionated defaults + # + + # Use Network Manager + networking.wireless.enable = false; + networking.networkmanager.enable = true; + + # SSH + services.openssh = { + enable = true; + }; + + # Use PulseAudio + hardware.pulseaudio.enable = true; + + # Enable Bluetooth + hardware.bluetooth.enable = true; + + # Bluetooth audio + hardware.pulseaudio.package = pkgs.pulseaudioFull; + + # Enable power management options + powerManagement.enable = true; + + # It's recommended to keep enabled on these constrained devices + zramSwap.enable = true; + + # Auto-login for phosh + services.xserver.desktopManager.phosh = { + user = "aaronh"; + }; + + # + # User configuration + # + + users.users."aaronh" = { + isNormalUser = true; + description = "Aaron Honeycutt"; + hashedPassword = "$6$zOZeSMch129yV5i1$9E0sFdMo4qIBUZgPKgl5AXKlYNku12gv2owPy7FSpC2W4qMofTzoX2KFLmGxERdI8A7n0kyJElcUFQGIS940j1"; + extraGroups = [ + "dialout" + "feedbackd" + "networkmanager" + "video" + "wheel" + ]; + packages = with pkgs; [ + grim + ]; + }; + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "23.05"; # Did you read the comment? +}