mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-03 19:39:40 +01:00
phone: Simplify options
This commit is contained in:
parent
6434f2b2fc
commit
0e028019f6
@ -1,42 +1,31 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "mobile-nixos";
|
||||
networking = {
|
||||
hostName = "mobile-nixos";
|
||||
wireless.enable = false;
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
#
|
||||
# Opinionated defaults
|
||||
#
|
||||
hardware = {
|
||||
pulseaudio = {
|
||||
enable = true;
|
||||
package = pkgs.pulseaudioFull;
|
||||
};
|
||||
|
||||
# Use Network Manager
|
||||
networking.wireless.enable = false;
|
||||
networking.networkmanager.enable = true;
|
||||
bluetooth.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;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
||||
|
||||
# Auto-login for phosh
|
||||
services.xserver.desktopManager.phosh = {
|
||||
user = "user";
|
||||
};
|
||||
|
||||
#
|
||||
# User configuration
|
||||
#
|
||||
|
||||
users.users."user" = {
|
||||
isNormalUser = true;
|
||||
description = "User";
|
||||
@ -50,11 +39,5 @@
|
||||
];
|
||||
};
|
||||
|
||||
# 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?
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user