nixos/flake.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

2023-06-21 17:41:35 +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,
home-manager,
2023-06-21 17:41:35 +01:00
}: {
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/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";
home.packages = [pkgs.gcc];
2023-06-21 20:55:16 +01:00
programs.home-manager.enable = true;
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
};
}