Dump nixos config after scrubing
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{ self, pkgs, ... }: {
|
||||
# List packages installed in system profile. To search by name, run:
|
||||
# $ nix-env -qaP | grep wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
neofetch
|
||||
];
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
onActivation = {
|
||||
autoUpdate = true;
|
||||
cleanup = "uninstall";
|
||||
upgrade = true;
|
||||
};
|
||||
|
||||
caskArgs = {
|
||||
no_quarantine = true;
|
||||
};
|
||||
|
||||
taps = [];
|
||||
brews = [
|
||||
"raylib"
|
||||
];
|
||||
casks = [
|
||||
"ghostty"
|
||||
"kicad"
|
||||
"secretive"
|
||||
"gcc-arm-embedded"
|
||||
"librewolf"
|
||||
];
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "BigBlueTerminal" ]; })
|
||||
];
|
||||
|
||||
users.users.uagm.home = "/Users/uagm";
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Necessary for using flakes on this system.
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
# Set Git commit hash for darwin-version.
|
||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 5;
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{ config, pkgs, ... } : {
|
||||
|
||||
imports = [
|
||||
../../home-modules/tmux-darwin.nix
|
||||
../../home-modules/lazygit.nix
|
||||
../../home-modules/zsh.nix
|
||||
../../home-modules/starship.nix
|
||||
../../home-modules/nvim.nix
|
||||
../../home-modules/direnv.nix
|
||||
# I should update the module with an option for adding winodow decorations.
|
||||
../../home-modules/ghostty-mac-config.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "uagm";
|
||||
homeDirectory = "/Users/uagm";
|
||||
|
||||
packages = with pkgs; [
|
||||
fzf
|
||||
ripgrep
|
||||
exercism
|
||||
typescript-language-server
|
||||
lua-language-server
|
||||
starship
|
||||
audacity
|
||||
];
|
||||
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
shellAliases = {
|
||||
# TODO BEGIN Interpolate the name of the host here.
|
||||
flakeconf = "nvim /Users/uagm/nixos/flake.nix";
|
||||
sysconf = "nvim /Users/uagm/nixos/hosts/macbook/configuration.nix";
|
||||
homeconf = "nvim /Users/uagm/nixos/hosts/macbook/home.nix";
|
||||
nvconf = "nvim /Users/uagm/nixos/home-modules/explicit-configs/nvim/init.lua";
|
||||
# TODO: Interpolate the name of the host here.
|
||||
nrsw = "darwin-rebuild switch --flake /Users/uagm/nixos#macbook";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user