phone: Prepare configuration for main flake

This is part of merging the phone flake with the main nix-config flake.
This commit is contained in:
Donovan Glover 2024-06-14 00:54:37 -04:00
parent 103238c11e
commit 399e43a723
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 24 additions and 77 deletions

View File

@ -1,5 +1,4 @@
# NOTE: this file was generated by the Mobile NixOS installer.
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
fileSystems = {

23
phone.nix Normal file
View File

@ -0,0 +1,23 @@
{ self, pkgs, ... }:
let
inherit (builtins) attrValues;
in
{
imports = attrValues self.nixosModules;
nixpkgs.overlays = attrValues self.overlays;
home-manager.sharedModules = attrValues self.homeManagerModules;
environment.systemPackages = attrValues self.packages.${pkgs.system};
modules = {
system = {
mullvad = true;
hostName = "mobile-nixos";
stateVersion = "23.11";
};
desktop = {
phone = true;
};
};
}

View File

@ -1,75 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
neovim
fish
yazi
bat
w3m
librewolf
git
htop
gnupg
mpv
ncmpcpp
pqiv
qutebrowser
starship
eza
fd
fzf
ripgrep
yt-dlp
neofetch
genact
zellij
p7zip
unar
];
programs.fish.enable = true;
programs.neovim.enable = true;
users.defaultUserShell = pkgs.fish;
environment.shells = [ pkgs.fish ];
networking = {
hostName = "mobile-nixos";
wireless.enable = false;
networkmanager.enable = true;
};
hardware = {
pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
bluetooth.enable = true;
};
powerManagement.enable = true;
zramSwap.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
services.xserver.desktopManager.phosh = {
user = "user";
};
users.users."user" = {
isNormalUser = true;
description = "User";
password = "user";
extraGroups = [
"dialout"
"feedbackd"
"networkmanager"
"video"
"wheel"
];
};
system.stateVersion = "23.11";
}