mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
75 lines
2.1 KiB
Nix
75 lines
2.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ./modules ];
|
|
|
|
# All of the home-manager-user-specific setup are here.
|
|
users.foo-dogsquared = {
|
|
dotfiles.enable = true;
|
|
|
|
programs = {
|
|
dconf.enable = true;
|
|
browsers.brave.enable = true;
|
|
browsers.firefox.enable = true;
|
|
browsers.misc.enable = true;
|
|
doom-emacs.enable = true;
|
|
email.enable = true;
|
|
email.thunderbird.enable = true;
|
|
research.enable = true;
|
|
vs-code.enable = true;
|
|
};
|
|
|
|
setups = {
|
|
desktop.enable = true;
|
|
development.enable = true;
|
|
fonts.enable = true;
|
|
music.enable = true;
|
|
music.mpd.enable = true;
|
|
};
|
|
};
|
|
|
|
# The keyfile required to decrypt the secrets.
|
|
sops.age.keyFile = "${config.xdg.configHome}/age/user";
|
|
|
|
sops.secrets = lib.private.getSecrets ./secrets/secrets.yaml {
|
|
davfs2-credentials = {
|
|
path = "${config.home.homeDirectory}/.davfs2/davfs2.conf";
|
|
};
|
|
};
|
|
|
|
# Add our own projects directory since most programs can't decide where it is
|
|
# properly.
|
|
xdg.userDirs.extraConfig.XDG_PROJECTS_DIR = "${config.home.homeDirectory}/Projects";
|
|
|
|
# Set nixpkgs config both outside and inside of home-manager.
|
|
nixpkgs.config = import ./config/nixpkgs/config.nix;
|
|
xdg.configFile."nixpkgs/config.nix".source = ./config/nixpkgs/config.nix;
|
|
|
|
home.packages = with pkgs; [
|
|
gopass # An improved version of the password manager for hipsters.
|
|
hledger # Trying to be a good accountant.
|
|
];
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
xdg.configFile = {
|
|
distrobox.source = ./config/distrobox;
|
|
kanidm.source = ./config/kanidm;
|
|
};
|
|
|
|
# Automating some files to be fetched on activation.
|
|
home.mutableFile = {
|
|
# ...my gopass secrets,...
|
|
".local/share/gopass/stores/personal" = {
|
|
url = "gitea@code.foodogsquared.one:foodogsquared/gopass-secrets-personal.git";
|
|
type = "gopass";
|
|
};
|
|
|
|
# ...and my custom theme to be a showoff.
|
|
"${config.xdg.dataHome}/base16/bark-on-a-tree" = {
|
|
url = "https://github.com/foo-dogsquared/base16-bark-on-a-tree-scheme.git";
|
|
type = "git";
|
|
};
|
|
};
|
|
}
|