nixos/flake.nix

42 lines
1 KiB
Nix

{
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";
};
};
outputs = {
self,
nixpkgs,
home-manager,
}: {
nixosConfigurations.N0245 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [./configuration.nix];
};
homeConfigurations."tux" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
modules = [
./home.nix
./home/personal.nix
./home/gui/wezterm.nix
({pkgs, ...}: {
home.packages = [pkgs.gcc];
programs.zsh = {
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
envExtra = ''
eval "$(/opt/homebrew/bin/brew shellenv)"
'';
};
services.syncthing.enable = true;
})
];
};
};
}