From f6dbb18c6aa36b900277d268d0294a0f7aa8fd9b Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 23 Feb 2024 17:37:16 +0000 Subject: [PATCH] Upload New File --- COSMIC/home.nix | 94 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 COSMIC/home.nix diff --git a/COSMIC/home.nix b/COSMIC/home.nix new file mode 100644 index 0000000..6cfaead --- /dev/null +++ b/COSMIC/home.nix @@ -0,0 +1,94 @@ +{ config, pkgs, ... }: + +{ + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "aaronh"; + home.homeDirectory = "/home/aaronh"; + + # This value determines the Home Manager release that your + # configuration is compatible with. This helps avoid breakage + # when a new Home Manager release introduces backwards + # incompatible changes. + # + # You can update Home Manager without changing this value. See + # the Home Manager release notes for a list of state version + # changes in each release. + home.stateVersion = "24.05"; + + nixpkgs.config = { + allowUnfree = true; + }; + + home.packages = with pkgs; [ + # GUI + deja-dup + discord + libreoffice-fresh + signal-desktop + tuba + #youtube-music + + # CLI + btop + freshfetch + gcc + ]; + + programs.bash = { + enable = true; + shellAliases = { + nix-generations = "sudo nix-env -p /nix/var/nix/profiles/system --list-generations"; + nix-upgrade = "sudo nixos-rebuild switch --upgrade"; + }; + bashrcExtra = "eval `ssh-agent`"; + }; + + programs.git = { + enable = true; + lfs.enable = true; + userName = "Aaron Honeycutt"; + userEmail = "aaronhoneycutt@protonmail.com"; + aliases = { + undo = "reset HEAD~1 --mixed"; + amend = "commit -a --amend"; + feature = "commit -m feat: -m new-feature"; + fix = "commit -m fix: -m issue#"; + }; + extraConfig = { + color = { + ui = "auto"; + }; + color.status = { + added = "green bold"; + changed = "yellow bold"; + untracked = "red bold"; + }; + push = { + autoSetupRemote = "true"; + }; + init = { + defaultBranch = "main"; + }; + }; + }; + + programs.nix-index = { + enable = true; + enableBashIntegration = true; + }; + + programs.vscode = { + enable = true; + package = pkgs.vscodium; + extensions = with pkgs.vscode-extensions; [ + yzhang.markdown-all-in-one + ]; + }; + + programs.gh.enable = true; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + +}