2024-06-20 19:28:02 +02:00
|
|
|
{ self, pkgs, ... }:
|
2024-06-15 16:46:45 +02:00
|
|
|
|
2024-06-15 17:56:02 +02:00
|
|
|
let
|
2024-06-16 18:50:49 +02:00
|
|
|
inherit (builtins) attrValues;
|
2024-06-15 17:56:02 +02:00
|
|
|
in
|
2024-06-15 16:46:45 +02:00
|
|
|
{
|
2024-06-20 19:28:02 +02:00
|
|
|
imports = attrValues self.nixosModules;
|
|
|
|
nixpkgs.overlays = attrValues self.overlays;
|
2024-06-25 01:10:49 +02:00
|
|
|
|
|
|
|
home-manager.sharedModules = attrValues {
|
|
|
|
inherit (self.homeManagerModules)
|
|
|
|
eza
|
|
|
|
fcitx
|
|
|
|
fish
|
|
|
|
git
|
|
|
|
gpg
|
|
|
|
gtk
|
|
|
|
htop
|
|
|
|
librewolf
|
|
|
|
neovim
|
|
|
|
starship
|
|
|
|
thunar
|
|
|
|
xdg-user-dirs
|
|
|
|
xresources
|
|
|
|
;
|
|
|
|
};
|
|
|
|
|
2024-06-20 19:28:02 +02:00
|
|
|
environment.systemPackages = attrValues self.packages.${pkgs.system};
|
2024-06-16 21:45:01 +02:00
|
|
|
|
2024-06-19 08:09:54 +02:00
|
|
|
modules = {
|
|
|
|
system = {
|
|
|
|
hostName = "mobile-nixos";
|
|
|
|
stateVersion = "23.11";
|
|
|
|
phone = true;
|
2024-06-16 21:45:01 +02:00
|
|
|
};
|
|
|
|
|
2024-06-20 19:22:41 +02:00
|
|
|
desktop = {
|
|
|
|
phone = true;
|
|
|
|
phosh = true;
|
|
|
|
};
|
2024-06-20 17:08:22 +02:00
|
|
|
|
2024-06-24 22:21:22 +02:00
|
|
|
hardware.keyboardBinds = true;
|
2024-06-22 01:12:01 +02:00
|
|
|
|
|
|
|
system = {
|
|
|
|
mullvad = true;
|
|
|
|
};
|
2024-06-16 18:50:49 +02:00
|
|
|
};
|
|
|
|
|
2024-06-15 17:56:02 +02:00
|
|
|
environment = {
|
|
|
|
sessionVariables = {
|
2024-06-15 18:28:17 +02:00
|
|
|
LIBGL_ALWAYS_SOFTWARE = "true";
|
2024-06-15 17:56:02 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
calls.enable = true;
|
|
|
|
};
|
2024-06-15 16:46:45 +02:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
wireless.enable = false;
|
2024-06-15 18:07:24 +02:00
|
|
|
wireguard.enable = true;
|
2024-06-15 16:46:45 +02:00
|
|
|
};
|
|
|
|
|
2024-06-15 18:06:53 +02:00
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
2024-06-17 17:27:00 +02:00
|
|
|
};
|
|
|
|
|
2024-06-15 17:56:02 +02:00
|
|
|
powerManagement.enable = true;
|
2024-06-15 16:46:45 +02:00
|
|
|
}
|