42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
identity = import ./resources/identity.nix;
|
|
in
|
|
{
|
|
# Workaround for nix-community/home-manager#2333
|
|
disabledModules = [ "config/i18n.nix" ];
|
|
|
|
imports = [
|
|
./components/applications.user.nix
|
|
./components/browser.user.nix
|
|
./components/desktop.user.nix
|
|
./components/editor.user.nix
|
|
./components/fonts.user.nix
|
|
./components/git.user.nix
|
|
./components/keyboard.user.nix
|
|
./components/nix.user.nix
|
|
./components/openpgp.user.nix
|
|
./components/shell.user.nix
|
|
./components/spelling.user.nix
|
|
./components/terminal.user.nix
|
|
./local/user.nix
|
|
];
|
|
|
|
options.host = {
|
|
background = lib.mkOption { type = lib.types.str; };
|
|
firefoxProfile = lib.mkOption { type = lib.types.str; };
|
|
local = lib.mkOption { type = lib.types.path; };
|
|
};
|
|
|
|
config = {
|
|
# Home manager
|
|
programs.home-manager.enable = true;
|
|
manual.html.enable = true;
|
|
|
|
# User
|
|
home.username = identity.username;
|
|
home.homeDirectory = "/home/${identity.username}";
|
|
home.file.".face".source = identity.image;
|
|
};
|
|
}
|