mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-25 15:18:38 +01:00
phone: Add base home-manager support
This seems to work to an extent.
This commit is contained in:
parent
8236511d5d
commit
866cce9f50
@ -1,13 +1,15 @@
|
|||||||
{ self, pkgs, ... }:
|
{ self, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (self.packages.${pkgs.system}) aleo-fonts;
|
inherit (self.packages.${pkgs.system}) aleo-fonts;
|
||||||
inherit (pkgs) phinger-cursors noto-fonts-cjk-sans maple-mono noto-fonts-emoji;
|
inherit (pkgs) phinger-cursors noto-fonts-cjk-sans maple-mono noto-fonts-emoji;
|
||||||
|
inherit (lib) singleton;
|
||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
|
|
||||||
username = "user";
|
username = "user";
|
||||||
theme = "monokai";
|
theme = "monokai";
|
||||||
fontSize = 11;
|
fontSize = 11;
|
||||||
|
stateVersion = "23.11";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = attrValues {
|
imports = attrValues {
|
||||||
@ -19,6 +21,25 @@ in
|
|||||||
inherit (self.overlays) phinger-cursors;
|
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 = {
|
fonts = {
|
||||||
enableDefaultPackages = false;
|
enableDefaultPackages = false;
|
||||||
|
|
||||||
@ -222,5 +243,8 @@ in
|
|||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
||||||
system.stateVersion = "23.11";
|
|
||||||
|
system = {
|
||||||
|
inherit stateVersion;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user