Skip to content

Commit

Permalink
Refactor mini.nix: Comment out unused user configuration and enable zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwclark committed Nov 11, 2024
1 parent fd175b3 commit 40d125b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@
specialArgs = {
inherit inputs outputs;
};
modules = [
# modules = [
# lib.nixosModules.darwin
# nix-homebrew.darwinModules.nix-homebrew
./hosts/mini
# ./hosts/mini
# ./home/mini.nix
# home-manager.darwinModules.home-manager
# {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# }
];
# ];
};
# darwinPackages = self.darwinConfigurations."mini".pkgs;
};
Expand Down
44 changes: 22 additions & 22 deletions hosts/mini/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
}:

{
imports = [
inputs.home-manager.nixosModules.home-manager
];
# imports = [
# inputs.home-manager.nixosModules.home-manager
# ];

# home-manager.useGlobalPkgs = true;
# home-manager.extraSpecialArgs = {
# inherit inputs outputs;
# };
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = {
inherit inputs outputs;
};

# The platform the configuration will be used on.
nixpkgs = {
Expand Down Expand Up @@ -51,8 +51,8 @@
# onActivation.cleanup = "zap";
# };

# programs.home-manager.enable = true;
# programs.zsh.enable = true;
programs.home-manager.enable = true;
programs.zsh.enable = true;

fonts = {
fontDir.enable = true;
Expand Down Expand Up @@ -108,27 +108,27 @@
};

# Auto upgrade nix package and the daemon service.
# services.nix-daemon.enable = true;
services.nix-daemon.enable = true;
# nix.package = pkgs.nix;

# nix = {
# package = lib.mkDefault pkgs.nixVersions.latest;
# settings = {
# # Necessary for using flakes on this system.
# experimental-features = [
# "nix-command"
# "flakes"
# ];
# warn-dirty = false;
# };
# };
nix = {
package = lib.mkDefault pkgs.nixVersions.latest;
settings = {
# Necessary for using flakes on this system.
experimental-features = [
"nix-command"
"flakes"
];
warn-dirty = false;
};
};
# nix.package = pkgs.nix;

# Enable alternative shell support in nix-darwin.
# programs.fish.enable = true;

# Set Git commit hash for darwin-version.
# system.configurationRevision = self.rev or self.dirtyRev or null;
system.configurationRevision = self.rev or self.dirtyRev or null;

# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
Expand Down

0 comments on commit 40d125b

Please sign in to comment.