2023-06-21 17:41:35 +01:00
|
|
|
{
|
2023-06-21 20:49:28 +01:00
|
|
|
description = "Evie's machine configurations";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# Specify the source of Home Manager and Nixpkgs.
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2023-06-21 20:49:28 +01:00
|
|
|
home-manager,
|
2023-06-21 17:41:35 +01:00
|
|
|
}: {
|
|
|
|
nixosConfigurations.N0245 = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [./configuration.nix];
|
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
homeConfigurations."tux" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
|
|
|
|
modules = [
|
|
|
|
./home/personal.nix
|
|
|
|
./home/gui/wezterm.nix
|
|
|
|
({pkgs, ...}: {
|
2023-06-21 20:55:16 +01:00
|
|
|
home.username = "tux";
|
|
|
|
home.homeDirectory = "/Users/tux";
|
|
|
|
home.stateVersion = "23.05";
|
2023-06-21 20:49:28 +01:00
|
|
|
home.packages = [pkgs.gcc];
|
2023-06-21 20:55:16 +01:00
|
|
|
programs.home-manager.enable = true;
|
2023-06-21 20:49:28 +01:00
|
|
|
programs.zsh = {
|
|
|
|
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
|
|
|
|
envExtra = ''
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
|
|
|
}
|