treewide: slim down and reorganize config
This commit is contained in:
parent
778775ceb6
commit
8a5be644b8
33 changed files with 131 additions and 755 deletions
|
@ -1,11 +1,13 @@
|
|||
{ inputs, lib, pkgs, config, outputs, ... }: {
|
||||
imports = [
|
||||
# home-manager
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
# Basic CLI tools and environment
|
||||
./features/cli
|
||||
./features/devel
|
||||
] ++ (builtins.attrValues outputs.homeManagerModules);
|
||||
|
||||
# Configure nixpkgs
|
||||
nixpkgs = {
|
||||
overlays = builtins.attrValues outputs.overlays;
|
||||
config = {
|
||||
|
@ -14,6 +16,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Configure nix
|
||||
nix = {
|
||||
package = lib.mkDefault pkgs.nixVersions.nix_2_22;
|
||||
settings = {
|
||||
|
@ -22,6 +25,20 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Add some additional packages for Nix-centric development
|
||||
home.packages = with pkgs; [
|
||||
# formatting
|
||||
nixpkgs-fmt
|
||||
nixfmt-classic
|
||||
# inspecting derivations
|
||||
nix-tree
|
||||
# lsps
|
||||
nil
|
||||
nixd
|
||||
# once-off command execution
|
||||
comma
|
||||
];
|
||||
|
||||
programs = { home-manager.enable = true; };
|
||||
|
||||
programs.git = {
|
||||
|
@ -51,22 +68,6 @@
|
|||
sessionVariables = { FLAKE = "$HOME/nix-config"; };
|
||||
};
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||
image = pkgs.fetchurl {
|
||||
url =
|
||||
"https://lds-img.finalfantasyxiv.com/h/d/gGA_a8kMXpsxZEOfW_MadG07_E.jpg";
|
||||
sha256 = "0d8b4031dnlrcd3wx63p19w5h5zc8z5fk2yqz0wv20m7gr62h8r0";
|
||||
};
|
||||
fonts = {
|
||||
monospace = {
|
||||
name = config.fontProfiles.monospace.family;
|
||||
package = config.fontProfiles.monospace.package;
|
||||
};
|
||||
};
|
||||
targets.wofi.enable = false;
|
||||
targets.kde.enable = false;
|
||||
targets.gtk.enable = false;
|
||||
};
|
||||
systemd.user.startServices = "sd-switch";
|
||||
xdg.mime.enable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue