various mac configuration updates
This commit is contained in:
parent
7c94360cb1
commit
ccaa44abc6
56
flake.lock
generated
56
flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1651916036,
|
"lastModified": 1673295039,
|
||||||
"narHash": "sha256-UuD9keUGm4IuVEV6wdSYbuRm7CwfXE63hVkzKDjVsh4=",
|
"narHash": "sha256-AsdYgE8/GPwcelGgrntlijMg4t3hLFJFCRF3tL5WVjA=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "2f2bdf658d2b79bada78dc914af99c53cad37cba",
|
"rev": "87b9d090ad39b25b2400029c64825fc2a8868943",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -24,11 +24,11 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1650374568,
|
"lastModified": 1673956053,
|
||||||
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
|
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
|
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -39,11 +39,11 @@
|
|||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1653893745,
|
"lastModified": 1667395993,
|
||||||
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -59,11 +59,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1654113405,
|
"lastModified": 1667907331,
|
||||||
"narHash": "sha256-VpK+0QaWG2JRgB00lw77N9TjkE3ec0iMYIX1TzGpxa4=",
|
"narHash": "sha256-bHkAwkYlBjkupPUFcQjimNS8gxWSWjOTevEuwdnp5m0=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ac2287df5a2d6f0a44bbcbd11701dbbf6ec43675",
|
"rev": "6639e3a837fc5deb6f99554072789724997bc8e5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -82,11 +82,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1655723343,
|
"lastModified": 1675351082,
|
||||||
"narHash": "sha256-J95qdF7m30dEioJZE8fsmaOusqIp57SMJyG4U/ZKfJk=",
|
"narHash": "sha256-4Oi4k4Qp1vOvKoACHDcz0xiVj7DuMaCL57fP3W77eA0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "e178b6df72d79324a8446cd175d9d091223585ae",
|
"rev": "52cadf92e1bfdef235d5cd77b9a4b2ab848baa8a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -97,26 +97,26 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1655456688,
|
"lastModified": 1675757258,
|
||||||
"narHash": "sha256-j2trI5gv2fnHdfUQFBy957avCPxxzCqE8R+TOYHPSRE=",
|
"narHash": "sha256-pIRer8vdsoherlRKpzfnHbMZ5TsAcvRlXHCIaHkIUbg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d17a56d90ecbd1b8fc908d49598fb854ef188461",
|
"rev": "af96094e9b8eb162d70a84fa3b39f4b7a8b264d2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-22.05",
|
"ref": "nixos-22.11",
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1655739339,
|
"lastModified": 1675950569,
|
||||||
"narHash": "sha256-ykV5RQgltIJl5EXbGdndf6IcncfCP8RnyH57TyKFazE=",
|
"narHash": "sha256-v6p+D8e7GVcAlVoJGrAqjwjfAglKS9+GzbQFxd8d0Rc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "0cadcae82c23de1ec4b4a5bbe1e2f75e59752317",
|
"rev": "1ed7701bc2f5c91454027067872037272812e7a3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -138,11 +138,11 @@
|
|||||||
},
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1655567057,
|
"lastModified": 1675763311,
|
||||||
"narHash": "sha256-Cc5hQSMsTzOHmZnYm8OSJ5RNUp22bd5NADWLHorULWQ=",
|
"narHash": "sha256-bz0Q2H3mxsF1CUfk26Sl9Uzi8/HFjGFD/moZHz1HebU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e0a42267f73ea52adc061a64650fddc59906fc99",
|
"rev": "fab09085df1b60d6a0870c8a89ce26d5a4a708c2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -153,11 +153,11 @@
|
|||||||
},
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1653893745,
|
"lastModified": 1667395993,
|
||||||
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
280
flake.nix
280
flake.nix
@ -1,167 +1,167 @@
|
|||||||
{
|
{
|
||||||
description = "Michael Thomas's NixOS configuration";
|
description = "Michael Thomas's NixOS configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-22.05";
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
||||||
unstable.url = "nixpkgs/nixos-unstable";
|
unstable.url = "nixpkgs/nixos-unstable";
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
||||||
utils.url = "github:numtide/flake-utils";
|
utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
nixos-wsl = {
|
nixos-wsl = {
|
||||||
url = "github:nix-community/NixOS-WSL";
|
url = "github:nix-community/NixOS-WSL";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
darwin = {
|
darwin = {
|
||||||
url = "github:lnl7/nix-darwin/master";
|
url = "github:lnl7/nix-darwin/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:rycee/home-manager/release-22.05";
|
url = "github:rycee/home-manager/release-22.05";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, unstable, nur, utils, nixos-wsl, darwin, home-manager, ... }@inputs: {
|
outputs = { self, nixpkgs, unstable, nur, utils, nixos-wsl, darwin, home-manager, ... }@inputs: {
|
||||||
|
|
||||||
# This repo's overlay plus any other overlays you use
|
# This repo's overlay plus any other overlays you use
|
||||||
# If you want to use packages from flakes that are not nixpkgs (such as NUR), add their overlays here.\
|
# If you want to use packages from flakes that are not nixpkgs (such as NUR), add their overlays here.\
|
||||||
overlays = {
|
overlays = {
|
||||||
default = import ./overlays inputs;
|
default = import ./overlays inputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
overlaysModule = {
|
overlaysModule = {
|
||||||
nixpkgs.overlays = [ self.overlays.default ];
|
nixpkgs.overlays = [ self.overlays.default ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
loft = nixpkgs.lib.nixosSystem {
|
|
||||||
system = utils.lib.system.x86_64-linux;
|
|
||||||
modules = [
|
|
||||||
self.overlaysModule
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
./modules/common.nix
|
|
||||||
./modules/containers.nix
|
|
||||||
|
|
||||||
./machines/loft/configuration.nix
|
loft = nixpkgs.lib.nixosSystem {
|
||||||
];
|
system = utils.lib.system.x86_64-linux;
|
||||||
specialArgs = { inherit inputs; };
|
modules = [
|
||||||
};
|
self.overlaysModule
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
./modules/common.nix
|
||||||
|
./modules/containers.nix
|
||||||
|
|
||||||
kitchen = nixpkgs.lib.nixosSystem {
|
./machines/loft/configuration.nix
|
||||||
system = utils.lib.system.x86_64-linux;
|
];
|
||||||
modules = [
|
specialArgs = { inherit inputs; };
|
||||||
self.overlaysModule
|
};
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
./modules/common.nix
|
|
||||||
./modules/containers.nix
|
|
||||||
|
|
||||||
./machines/kitchen/configuration.nix
|
kitchen = nixpkgs.lib.nixosSystem {
|
||||||
];
|
system = utils.lib.system.x86_64-linux;
|
||||||
specialArgs = { inherit inputs; };
|
modules = [
|
||||||
};
|
self.overlaysModule
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
./modules/common.nix
|
||||||
|
./modules/containers.nix
|
||||||
|
|
||||||
# WSL environment
|
./machines/kitchen/configuration.nix
|
||||||
work = inputs.nixpkgs.lib.nixosSystem {
|
];
|
||||||
system = utils.lib.system.x86_64-linux;
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
};
|
||||||
self.overlaysModule
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
(import ./overlays/iptables)
|
|
||||||
];
|
|
||||||
}
|
|
||||||
./modules/containers.nix
|
|
||||||
./modules/nix.nix
|
|
||||||
./modules/vscode-server.nix
|
|
||||||
|
|
||||||
./machines/work/configuration.nix
|
# WSL environment
|
||||||
];
|
work = inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
system = utils.lib.system.x86_64-linux;
|
||||||
};
|
modules = [
|
||||||
|
self.overlaysModule
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import ./overlays/iptables)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
./modules/containers.nix
|
||||||
|
./modules/nix.nix
|
||||||
|
./modules/vscode-server.nix
|
||||||
|
|
||||||
};
|
./machines/work/configuration.nix
|
||||||
|
];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
};
|
||||||
|
|
||||||
darwinConfigurations = {
|
};
|
||||||
mac = darwin.lib.darwinSystem {
|
|
||||||
system = "aarch64-darwin";
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
modules = [
|
|
||||||
self.overlaysModule
|
|
||||||
home-manager.darwinModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.users.michael = import ./user/environments/mac/home.nix;
|
|
||||||
}
|
|
||||||
|
|
||||||
./machines/mac/configuration.nix
|
darwinConfigurations = {
|
||||||
];
|
mac = darwin.lib.darwinSystem {
|
||||||
};
|
system = "aarch64-darwin";
|
||||||
};
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
home-manager.darwinModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.michael = import ./user/environments/mac/home.nix;
|
||||||
|
}
|
||||||
|
|
||||||
homeConfigurations = {
|
./machines/mac/configuration.nix
|
||||||
nixos = inputs.home-manager.lib.homeManagerConfiguration {
|
];
|
||||||
system = "x86_64-linux";
|
};
|
||||||
homeDirectory = "/home/michael";
|
};
|
||||||
username = "michael";
|
|
||||||
stateVersion = "21.05";
|
|
||||||
configuration = { config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
imports = [
|
homeConfigurations = {
|
||||||
./user/environments/nixos/home.nix
|
nixos = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
];
|
system = "x86_64-linux";
|
||||||
};
|
homeDirectory = "/home/michael";
|
||||||
};
|
username = "michael";
|
||||||
|
stateVersion = "21.05";
|
||||||
|
configuration = { config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
wsl = inputs.home-manager.lib.homeManagerConfiguration {
|
imports = [
|
||||||
system = "x86_64-linux";
|
./user/environments/nixos/home.nix
|
||||||
homeDirectory = "/home/michael";
|
];
|
||||||
username = "michael";
|
};
|
||||||
stateVersion = "21.05";
|
};
|
||||||
configuration = { config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
imports = [
|
wsl = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
./user/environments/wsl/home.nix
|
system = "x86_64-linux";
|
||||||
];
|
homeDirectory = "/home/michael";
|
||||||
};
|
username = "michael";
|
||||||
};
|
stateVersion = "21.05";
|
||||||
|
configuration = { config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
mac = inputs.home-manager.lib.homeManagerConfiguration {
|
imports = [
|
||||||
system = "aarch64-darwin";
|
./user/environments/wsl/home.nix
|
||||||
homeDirectory = "/Users/michael";
|
];
|
||||||
username = "michael";
|
};
|
||||||
stateVersion = "22.05";
|
};
|
||||||
configuration = { config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
imports = [
|
mac = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
./user/environments/mac/home.nix
|
system = "aarch64-darwin";
|
||||||
];
|
homeDirectory = "/Users/michael";
|
||||||
};
|
username = "michael";
|
||||||
};
|
stateVersion = "22.05";
|
||||||
};
|
configuration = { config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
};
|
imports = [
|
||||||
# // utils.lib.eachSystem [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ] (system: {
|
./user/environments/mac/home.nix
|
||||||
# nixpkgs = import nixpkgs {
|
];
|
||||||
# inherit system;
|
};
|
||||||
# overlays = [
|
};
|
||||||
# self.overlays.default
|
};
|
||||||
# ];
|
|
||||||
# config.allowUnfree = true;
|
};
|
||||||
# };
|
# // utils.lib.eachSystem [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ] (system: {
|
||||||
# });
|
# nixpkgs = import nixpkgs {
|
||||||
|
# inherit system;
|
||||||
|
# overlays = [
|
||||||
|
# self.overlays.default
|
||||||
|
# ];
|
||||||
|
# config.allowUnfree = true;
|
||||||
|
# };
|
||||||
|
# });
|
||||||
}
|
}
|
||||||
|
@ -21,32 +21,63 @@
|
|||||||
# Terminal
|
# Terminal
|
||||||
git
|
git
|
||||||
micro
|
micro
|
||||||
|
# Containers
|
||||||
|
colima
|
||||||
|
docker-client
|
||||||
|
docker-compose
|
||||||
|
# Video
|
||||||
|
ffmpeg
|
||||||
|
# Spotify
|
||||||
|
spicetify-cli
|
||||||
|
# Java
|
||||||
|
checkstyle
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh.enable = true;
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
# Make zsh installation work properly with macOS path
|
||||||
|
loginShellInit = ''
|
||||||
|
if [ -x /usr/libexec/path_helper ]; then
|
||||||
|
eval `/usr/libexec/path_helper -s`
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nix-daemon.enable = true;
|
nix-daemon.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoUpdate = true; # Auto update packages
|
onActivation = {
|
||||||
cleanup = "zap"; # Uninstall not listed packages and casks
|
# Auto update packages
|
||||||
|
autoUpdate = true;
|
||||||
|
# Uninstall not listed packages and casks
|
||||||
|
cleanup = "zap";
|
||||||
|
# Upgrade outdated formulae on activation
|
||||||
|
upgrade = true;
|
||||||
|
};
|
||||||
brews = [
|
brews = [
|
||||||
|
"cocoapods"
|
||||||
|
"openjdk@17"
|
||||||
|
"bash" # Required for nix-shell to function properly
|
||||||
];
|
];
|
||||||
casks = [
|
casks = [
|
||||||
|
"hiddenbar"
|
||||||
|
"android-platform-tools"
|
||||||
|
"mactex"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowBroken = true; # Workaround for pyopenssl being marked broken
|
# Workaround for pyopenssl being marked broken
|
||||||
};
|
config.allowBroken = true;
|
||||||
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
@ -57,10 +88,12 @@
|
|||||||
auto-optimise-store = true
|
auto-optimise-store = true
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
settings.auto-optimise-store = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
activationScripts.postActivation.text = ''sudo chsh -s ${pkgs.zsh}/bin/zsh''; # Since it's not possible to declare default shell, run this command after build
|
# Since it's not possible to declare default shell, run this command after build
|
||||||
|
activationScripts.postActivation.text = ''sudo chsh -s ${pkgs.zsh}/bin/zsh'';
|
||||||
stateVersion = 4;
|
stateVersion = 4;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/zsh.nix
|
../../modules/zsh.nix
|
||||||
@ -11,6 +11,26 @@
|
|||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Add homebrew applications to path
|
||||||
|
programs.zsh = {
|
||||||
|
profileExtra = ''
|
||||||
|
PATH=/opt/homebrew/bin:$PATH
|
||||||
|
'';
|
||||||
|
prezto.pmodules = [
|
||||||
|
"osx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# iterm2 integration
|
||||||
|
home.file = {
|
||||||
|
".zprezto/contrib/zsh-iterm2".source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "laggardkernel";
|
||||||
|
repo = "zsh-iterm2";
|
||||||
|
rev = "6f9d8951b3330593ceb66972a71a067793b0981e";
|
||||||
|
hash = "sha256-wh9Rltajlb5FlxW1WKGdufnPkikn4gRJZ+fbPO3rVWc=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.git.extraConfig.credential.helper = "osxkeychain";
|
programs.git.extraConfig.credential.helper = "osxkeychain";
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
|
@ -1,17 +1,20 @@
|
|||||||
{ config, pkgs, libs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Javascript
|
# Javascript
|
||||||
nodejs
|
nodejs
|
||||||
nodePackages.yarn
|
nodePackages.yarn
|
||||||
nodePackages.pnpm
|
nodePackages.pnpm
|
||||||
# PHP
|
# PHP
|
||||||
php
|
php
|
||||||
# Kubernetes
|
# Python
|
||||||
azure-cli
|
python3
|
||||||
kubectl
|
# Kubernetes
|
||||||
kubernetes-helm
|
azure-cli
|
||||||
# Nix
|
kubectl
|
||||||
rnix-lsp
|
kubernetes-helm
|
||||||
];
|
# Nix
|
||||||
|
rnix-lsp
|
||||||
|
nixpkgs-fmt
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user