Add home-manager config for Monarch to flake.nix
This commit is contained in:
parent
4a68237d43
commit
dcb22ebac5
30
flake.nix
30
flake.nix
|
@ -1,13 +1,41 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
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;
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue