phone: Add base home-manager support

This seems to work to an extent.
This commit is contained in:
Donovan Glover 2024-06-16 15:45:01 -04:00
parent 8236511d5d
commit 866cce9f50
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,13 +1,15 @@
{ self, pkgs, ... }:
{ self, pkgs, lib, ... }:
let
inherit (self.packages.${pkgs.system}) aleo-fonts;
inherit (pkgs) phinger-cursors noto-fonts-cjk-sans maple-mono noto-fonts-emoji;
inherit (lib) singleton;
inherit (builtins) attrValues;
username = "user";
theme = "monokai";
fontSize = 11;
stateVersion = "23.11";
in
{
imports = attrValues {
@ -19,6 +21,25 @@ in
inherit (self.overlays) phinger-cursors;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = attrValues self.homeManagerModules ++ singleton {
home = {
inherit stateVersion;
};
programs.man.generateCaches = true;
};
users.${username}.home = {
inherit username;
homeDirectory = "/home/${username}";
};
};
fonts = {
enableDefaultPackages = false;
@ -222,5 +243,8 @@ in
powerManagement.enable = true;
zramSwap.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
system.stateVersion = "23.11";
system = {
inherit stateVersion;
};
}