nix-config/phone/configuration.nix

115 lines
1.8 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
2024-06-15 17:56:02 +02:00
let
username = "user";
in
{
2024-06-15 17:56:02 +02:00
environment = {
sessionVariables = {
LIBGL_ALWAYS_SOFTWARE = "true";
2024-06-15 17:56:02 +02:00
};
2024-06-15 17:56:02 +02:00
shells = with pkgs; [
fish
];
2024-06-15 17:56:02 +02:00
systemPackages = with pkgs; [
2024-06-15 18:17:19 +02:00
flare-signal
gurk-rs
anki
android-tools
wget
2024-06-15 17:56:02 +02:00
chatty
gnome-console
megapixels
kitty
neovim
fish
yazi
bat
w3m
librewolf
git
2024-06-15 18:17:19 +02:00
htop-vim
2024-06-15 17:56:02 +02:00
gnupg
mpv
ncmpcpp
pqiv
qutebrowser
starship
eza
fd
fzf
ripgrep
yt-dlp
neofetch
genact
zellij
p7zip
unar
];
};
programs = {
fish.enable = true;
neovim.enable = true;
calls.enable = true;
command-not-found.enable = false;
2024-06-15 17:56:02 +02:00
};
networking = {
hostName = "mobile-nixos";
wireless.enable = false;
2024-06-15 18:07:24 +02:00
wireguard.enable = true;
2024-06-15 19:46:14 +02:00
networkmanager = {
enable = true;
wifi.macAddress = "random";
ethernet.macAddress = "random";
};
};
hardware = {
pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
bluetooth.enable = true;
2024-06-15 17:56:02 +02:00
sensor.iio.enable = true;
};
2024-06-15 18:06:53 +02:00
services = {
openssh.enable = true;
xserver.desktopManager.phosh = {
enable = true;
group = "users";
user = username;
};
};
2024-06-15 17:56:02 +02:00
users = {
defaultUserShell = pkgs.fish;
2024-06-15 17:56:02 +02:00
users.${username} = {
isNormalUser = true;
description = username;
password = username;
2024-06-15 17:56:02 +02:00
extraGroups = [
"dialout"
"feedbackd"
"networkmanager"
"video"
"wheel"
];
};
};
2024-06-15 17:56:02 +02:00
powerManagement.enable = true;
zramSwap.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
system.stateVersion = "23.11";
}