add phone config
This commit is contained in:
68
hosts/phone/configuration.nix
Normal file
68
hosts/phone/configuration.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(import <mobile-nixos/lib/configuration.nix> { device = "pine64-pinephone"; })
|
||||
./hardware-configuration.nix
|
||||
<mobile-nixos/examples/phosh/phosh.nix>
|
||||
|
||||
./utils/bento.nix
|
||||
];
|
||||
|
||||
networking.hostName = "mobile-nixos";
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
#
|
||||
# Opinionated defaults
|
||||
#
|
||||
|
||||
# Use Network Manager
|
||||
networking.wireless.enable = false;
|
||||
networking.networkmanager.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 = "dominik";
|
||||
};
|
||||
|
||||
#
|
||||
# User configuration
|
||||
#
|
||||
|
||||
users.users."dominik" = {
|
||||
isNormalUser = true;
|
||||
description = "Dominik";
|
||||
hashedPassword = "$6$9XPnHmmAyS.Y9wOa$Jkugv90xKzpRM6LWbDU0vIWcWC/7LTNuqoRSwNhhpBuXNY499DlSvcW3uh/AUBdVdlm6k18Z.N8FAWPEWBD0E/";
|
||||
extraGroups = [
|
||||
"dialout"
|
||||
"feedbackd"
|
||||
"networkmanager"
|
||||
"video"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
|
||||
# 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.11"; # Did you read the comment?
|
||||
}
|
||||
19
hosts/phone/hardware-configuration.nix
Normal file
19
hosts/phone/hardware-configuration.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
# NOTE: this file was generated by the Mobile NixOS installer.
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/d9b3519e-7b26-495b-8aa2-601cac773f07";
|
||||
fsType = "ext4";
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices = {
|
||||
"LUKS-MOBILE-NIXOS-ROOTFS" = {
|
||||
device = "/dev/disk/by-uuid/6ac23f93-cea1-454e-bae8-3edc07cb2d30";
|
||||
};
|
||||
};
|
||||
|
||||
nix.settings.max-jobs = lib.mkDefault 2;
|
||||
}
|
||||
1
hosts/phone/utils
Symbolic link
1
hosts/phone/utils
Symbolic link
@@ -0,0 +1 @@
|
||||
../../utils
|
||||
Reference in New Issue
Block a user