hm & lil chores
This commit is contained in:
27
flake.nix
27
flake.nix
@@ -23,10 +23,10 @@
|
||||
username = "lilj";
|
||||
email = "kulvir@duck.com";
|
||||
|
||||
system = "aarch64-darwin"; # apple target arch
|
||||
system = "aarch64-darwin"; # apple
|
||||
x86 = "x86_64-linux"
|
||||
forAllSystems = nixpkgs.lib.genAttrs [
|
||||
"aarch64-darwin"
|
||||
"aarch64-linux"
|
||||
];
|
||||
inherit (self) outputs;
|
||||
in {
|
||||
@@ -40,27 +40,16 @@
|
||||
specialArgs = {inherit inputs username email outputs system;};
|
||||
modules = [
|
||||
./hosts/mba
|
||||
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.lilj = import ./hosts/mba/home.nix;
|
||||
home-manager.extraSpecialArgs = {inherit username email outputs;};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# darwin-rebuild switch --flake .#vps
|
||||
nixosConfigurations = forAllSystems (system: {
|
||||
"vps" = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {inherit inputs username email outputs system;};
|
||||
modules = [
|
||||
./hosts/mba
|
||||
];
|
||||
};
|
||||
});
|
||||
nixosConfigurations."vps" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs username email outputs;};
|
||||
modules = [
|
||||
./hosts/vps
|
||||
];
|
||||
};
|
||||
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||
};
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
userName = "${username}";
|
||||
userEmail = "${email}";
|
||||
userName = "Kulvir Singh";
|
||||
userEmail = "kulvirs734@gmail.com";
|
||||
|
||||
aliases = {
|
||||
cm = "commit -m";
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
# includes = [
|
||||
# {
|
||||
# path = "~/corpo/.gitconfig";
|
||||
# path = "./.gitconfig";
|
||||
# condition = "gitdir:~/path/corpo/";
|
||||
# }
|
||||
# ];
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{outputs, ...}: {
|
||||
{inputs, outputs, username, email, ...}: {
|
||||
imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
|
||||
./configuration.nix
|
||||
./mac-apps.nix
|
||||
./nix.nix
|
||||
@@ -13,4 +15,11 @@
|
||||
# outputs.overlays.nur
|
||||
];
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
backupFileExtension = "hnm";
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {inherit username email outputs;};
|
||||
users.${username} = import ./home.nix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
# ghostty = inputs.ghostty.packages.aarch64-darwin.default;
|
||||
|
||||
discord = prev.discord.override {
|
||||
withOpenASAR = true;
|
||||
withVencord = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user