Joey Hafner
4e9d6dec6a
- Delete homeManagerConfigurations from flake. - Delete laptop nixosConfiguration. - Delete `home-manager/` and `nixos/` directories. - Switch from one general "vars" attrset for variables to using built-for-purpose attrsets for variables, each declared where it makes most sense (e.g. the "sys" attrset will be used for system-specific attributes). - Create `systems/` directory for root-level system configurations and `modules/` directory for re-usable config files. - Consolidate most app and system configuration into the `desktop-environment.nix` and `terminal-environment.nix` files. - Standardize all `.nix` files to nixos config nodes, as opposed to home-manager. May reverse this decision. - Use `${sys.username}` for the username of the primary user of the system. - Use `${usr.${sys.username}}` for attributes related to that user (e.g. realname, email).
61 lines
2.0 KiB
Nix
61 lines
2.0 KiB
Nix
{ pkgs, sys, ... }: {
|
|
home-manager.users.${sys.username} = {
|
|
home.packages = with pkgs; [ base16-schemes ];
|
|
# Use the following before running a switch to prevent clobbering:
|
|
# rm ~/.gtkrc-2.0 ~/.config/gtk-3.0/settings.ini ~/.config/gtk-3.0/gtk.css ~/.config/gtk-4.0/settings.ini ~/.config/gtk-4.0/gtk.css
|
|
# if one run with backups has already been done, clean it up with:
|
|
# rm ~/.gtkrc-2.0.backup ~/.config/gtk-3.0/settings.ini.backup ~/.config/gtk-3.0/gtk.css.backup ~/.config/gtk-4.0/settings.ini.backup ~/.config/gtk-4.0/gtk.css.backup
|
|
stylix = {
|
|
enable = true;
|
|
autoEnable = true;
|
|
polarity = "dark";
|
|
image = "${sys.wallpaper}";
|
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
|
fonts = {
|
|
sizes = {
|
|
applications = 10;
|
|
desktop = 10;
|
|
popups = 10;
|
|
terminal = 12;
|
|
};
|
|
monospace = {
|
|
name = "DejaVu Sans Mono";
|
|
package = pkgs.dejavu_fonts;
|
|
};
|
|
serif = {
|
|
name = "DejaVu Serif";
|
|
package = pkgs.dejavu_fonts;
|
|
};
|
|
sansSerif = {
|
|
name = "DejaVu Sans";
|
|
package = pkgs.dejavu_fonts;
|
|
};
|
|
emoji = {
|
|
name = "Noto Color Emoji";
|
|
package = pkgs.noto-fonts-color-emoji;
|
|
};
|
|
};
|
|
targets = {
|
|
bat.enable = true;
|
|
btop.enable = true;
|
|
firefox.enable = true;
|
|
firefox.profileNames = [ "Default" ];
|
|
fzf.enable = true;
|
|
gnome.enable = true;
|
|
gtk.enable = true;
|
|
kde.enable = true;
|
|
rofi.enable = true;
|
|
vesktop.enable = true;
|
|
vscode.enable = true;
|
|
wofi.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
# Use the following to get an ordered list of color codes from ~/.config/stylix/palette.json:
|
|
#
|
|
# cat ~/.config/stylix/palette.json | jq 'to_entries | .[] | select(.key | contains("base")) | .value'
|
|
# To convert that to the format expected by [genix7000](https://github.com/cab404/genix7000):
|
|
# sed 's/^"/"\\#/' | tr '\n' ' '
|