mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-29 03:34:46 +01:00
eac686339b
Using @attrs for the flake was cool at first, but this doesn't actually work if we want to use our nix-config inside NixOS containers due to how `self` works. Because of this, it's easier to simply ban @attrs altogether and use `nix-config` for everything since it's possible to access *all* the inputs of nix-config from itself instead of having to manually inherit each input we want (which could be any of them).
50 lines
796 B
Nix
50 lines
796 B
Nix
{ nix-config, ... }:
|
|
|
|
let
|
|
inherit (builtins) attrValues;
|
|
in
|
|
{
|
|
imports = attrValues nix-config.nixosModules ++ attrValues nix-config.inputs.mobile-nixos.nixosModules;
|
|
|
|
nixpkgs = {
|
|
overlays = with nix-config.overlays; [ phinger-cursors ];
|
|
|
|
config.permittedInsecurePackages = [
|
|
"olm-3.2.16"
|
|
];
|
|
};
|
|
|
|
home-manager.sharedModules = with nix-config.homeModules; [
|
|
dconf
|
|
eza
|
|
fish
|
|
git
|
|
gpg
|
|
gtk
|
|
htop
|
|
kitty
|
|
librewolf
|
|
neovim
|
|
starship
|
|
xdg-user-dirs
|
|
xresources
|
|
];
|
|
|
|
modules = {
|
|
system = {
|
|
hostName = "mobile-nixos";
|
|
stateVersion = "23.11";
|
|
mullvad = true;
|
|
};
|
|
|
|
hardware.keyboardBinds = true;
|
|
|
|
phone.enable = true;
|
|
};
|
|
|
|
mobile.beautification = {
|
|
silentBoot = true;
|
|
splash = true;
|
|
};
|
|
}
|