mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-26 10:13:25 +01:00
phone: Move mobile-nixos specific config to flake
This makes it possible to create an x86_64 virtual machine without the hardware-specific customizations of mobile-nixos.
This commit is contained in:
parent
a629f92827
commit
4e18c839de
@ -2,6 +2,10 @@
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
chatty # IM and SMS
|
||||
epiphany # Web browser
|
||||
gnome-console # Terminal
|
||||
megapixels # Camera
|
||||
neovim
|
||||
fish
|
||||
yazi
|
||||
@ -55,6 +59,8 @@
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
||||
|
||||
services.xserver.desktopManager.phosh = {
|
||||
enable = true;
|
||||
group = "users";
|
||||
user = "user";
|
||||
};
|
||||
|
||||
@ -72,4 +78,8 @@
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
programs.calls.enable = true;
|
||||
|
||||
hardware.sensor.iio.enable = true;
|
||||
}
|
||||
|
@ -19,9 +19,15 @@
|
||||
device = "pine64-pinephone";
|
||||
})
|
||||
|
||||
{
|
||||
mobile.beautification = {
|
||||
silentBoot = nixpkgs.lib.mkDefault true;
|
||||
splash = nixpkgs.lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./phosh.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -1,39 +0,0 @@
|
||||
#
|
||||
# This file represents safe opinionated defaults for a basic Phosh system.
|
||||
#
|
||||
# NOTE: this file and any it imports **have** to be safe to import from
|
||||
# an end-user's config.
|
||||
#
|
||||
{ config, lib, pkgs, options, ... }:
|
||||
|
||||
{
|
||||
mobile.beautification = {
|
||||
silentBoot = lib.mkDefault true;
|
||||
splash = lib.mkDefault true;
|
||||
};
|
||||
|
||||
services.xserver.desktopManager.phosh = {
|
||||
enable = true;
|
||||
group = "users";
|
||||
};
|
||||
|
||||
programs.calls.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
chatty # IM and SMS
|
||||
epiphany # Web browser
|
||||
gnome-console # Terminal
|
||||
megapixels # Camera
|
||||
];
|
||||
|
||||
hardware.sensor.iio.enable = true;
|
||||
|
||||
assertions = [
|
||||
{ assertion = options.services.xserver.desktopManager.phosh.user.isDefined;
|
||||
message = ''
|
||||
`services.xserver.desktopManager.phosh.user` not set.
|
||||
When importing the phosh configuration in your system, you need to set `services.xserver.desktopManager.phosh.user` to the username of the session user.
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user