mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-08 01:14:01 +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
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user