mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-03-14 14:58:14 +01:00
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:
parent
103238c11e
commit
399e43a723
@ -1,5 +1,4 @@
|
||||
# NOTE: this file was generated by the Mobile NixOS installer.
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
fileSystems = {
|
23
phone.nix
Normal file
23
phone.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
@ -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";
|
||||
}
|
Loading…
Reference in New Issue
Block a user