Switched To A New/Modified Structure

Based heavily on https://github.com/nmasur/dotfiles
This commit is contained in:
Annika Merris 2024-05-17 08:04:19 -04:00
parent 634a129840
commit 99a16590b3
25 changed files with 495 additions and 703 deletions

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./nixpkgs-fmt.nix
./vscode.nix
];
}

View file

@ -0,0 +1,18 @@
{ config, pkgs, lib, ...}:
{
options = {
nixpkgs-fmt = {
enable = lib.mkEnableOption {
description = "Enable nixpkgs-fmt";
default = false;
};
};
};
config = lib.mkIf (config.nixpkgs-fmt.enable) {
home-manager.users.${config.user} = {
home.packages = [
pkgs.nixpkgs-fmt
];
};
};
}

View file

@ -0,0 +1,31 @@
{ config, pkgs, lib, ... }:
{
options = {
vscode = {
enable = lib.mkEnableOption {
description = "Enable Visual Studio Code";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.vscode.enable) {
home-manager.users.${config.user} = {
nixpkgs.config.allowUnfree = true;
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
catppuccin.catppuccin-vsc
];
userSettings = {
"workbench.colorTheme" = "Catppuccin Mocha";
"editor.tabSize" = 2;
"editor.insertSpaces" = true;
"git.autofetch" = true;
# "git.enableSmartCommit" = true;
"git.confirmSync" = false;
};
};
};
};
}