Add more configs to flake.nix

This commit is contained in:
Evie Litherland-Smith 2023-06-21 21:23:51 +01:00
parent da57432029
commit 51ad3c8141
2 changed files with 21 additions and 24 deletions

View file

@ -15,30 +15,26 @@
nixpkgs, nixpkgs,
home-manager, home-manager,
}: { }: {
nixosConfigurations.N0245 = nixpkgs.lib.nixosSystem { nixosConfigurations = {
system = "x86_64-linux"; N0245 = nixpkgs.lib.nixosSystem {
modules = [./configuration.nix]; system = "x86_64-linux";
modules = [
./configuration.nix
./machines/N0245/default.nix
home-manager.nixosModules.home-manager
./machines/N0245/elitherl.nix
];
};
}; };
homeConfigurations."tux" = home-manager.lib.homeManagerConfiguration { homeConfigurations = {
pkgs = nixpkgs.legacyPackages."aarch64-darwin"; "tux" = home-manager.lib.homeManagerConfiguration {
modules = [ pkgs = nixpkgs.legacyPackages."aarch64-darwin";
./home/personal.nix modules = [./machines/Monarch/tux.nix];
./home/gui/wezterm.nix };
({pkgs, ...}: { "xenia" = home-manager.lib.homeManagerConfiguration {
home.username = "tux"; pkgs = nixpkgs.legacyPackages."aarch64-linux";
home.homeDirectory = "/Users/tux"; modules = [./machines/Northstar/xenia.nix];
home.stateVersion = "23.05"; };
home.packages = [pkgs.gcc];
programs.home-manager.enable = true;
programs.zsh = {
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
envExtra = ''
eval "$(/opt/homebrew/bin/brew shellenv)"
'';
};
services.syncthing.enable = true;
})
];
}; };
}; };
} }

View file

@ -4,8 +4,9 @@
# paths it should manage. # paths it should manage.
home.username = "tux"; home.username = "tux";
home.homeDirectory = "/Users/tux"; home.homeDirectory = "/Users/tux";
home.stateVersion = "22.11"; home.stateVersion = "23.05";
home.packages = [pkgs.gcc]; home.packages = [pkgs.gcc];
programs.home-manager.enable = true;
programs.zsh = { programs.zsh = {
sessionVariables.CC = "${pkgs.gcc}/bin/gcc"; sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
envExtra = '' envExtra = ''