2023-06-21 17:41:35 +01:00
|
|
|
{
|
2023-06-21 20:49:28 +01:00
|
|
|
description = "Evie's machine configurations";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-30 10:50:35 +01:00
|
|
|
wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git";
|
|
|
|
neovim-nightly-overlay = {
|
|
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
2023-06-27 22:03:15 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
|
2023-07-12 16:43:18 +01:00
|
|
|
outputs = inputs: let
|
2023-07-07 17:25:04 +01:00
|
|
|
waybar-experimental-overlay = final: prev: {
|
|
|
|
waybar = prev.waybar.overrideAttrs (oldAttrs: {
|
|
|
|
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
|
|
|
});
|
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {inputs = inputs;};
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
system = system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = [
|
|
|
|
waybar-experimental-overlay
|
|
|
|
inputs.neovim-nightly-overlay.overlay
|
|
|
|
];
|
|
|
|
};
|
2023-06-22 12:30:36 +01:00
|
|
|
in {
|
2023-06-21 21:23:51 +01:00
|
|
|
nixosConfigurations = {
|
2023-07-12 16:43:18 +01:00
|
|
|
Legion = inputs.nixpkgs.lib.nixosSystem {
|
2023-07-13 12:41:00 +01:00
|
|
|
specialArgs = specialArgs;
|
|
|
|
pkgs = pkgs;
|
|
|
|
modules = [./hosts/Legion];
|
2023-06-22 09:03:42 +01:00
|
|
|
};
|
2023-07-12 16:43:18 +01:00
|
|
|
Vanguard = inputs.nixpkgs.lib.nixosSystem {
|
2023-07-13 12:41:00 +01:00
|
|
|
specialArgs = specialArgs;
|
|
|
|
pkgs = pkgs;
|
|
|
|
modules = [./hosts/Vanguard];
|
2023-06-22 14:31:35 +01:00
|
|
|
};
|
2023-07-12 16:43:18 +01:00
|
|
|
Ronin = inputs.nixpkgs.lib.nixosSystem {
|
2023-07-13 12:41:00 +01:00
|
|
|
specialArgs = specialArgs;
|
|
|
|
pkgs = pkgs;
|
|
|
|
modules = [./hosts/Ronin];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
2023-06-21 21:23:51 +01:00
|
|
|
homeConfigurations = {
|
2023-07-12 16:43:18 +01:00
|
|
|
"tux@Monarch" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = inputs.nixpkgs.legacyPackages."aarch64-darwin";
|
2023-06-28 19:37:23 +01:00
|
|
|
modules = [
|
|
|
|
({pkgs, ...}: {
|
|
|
|
imports = [./home/personal.nix ./home/gui/wezterm.nix];
|
|
|
|
home = {
|
|
|
|
username = "tux";
|
|
|
|
homeDirectory = "/Users/tux";
|
|
|
|
stateVersion = "23.05";
|
|
|
|
packages = [pkgs.gcc];
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
zsh = {
|
|
|
|
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
|
|
|
|
envExtra = ''
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
})
|
|
|
|
];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-07-12 16:43:18 +01:00
|
|
|
"xenia@Northstar" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = inputs.nixpkgs.legacyPackages."aarch64-linux";
|
2023-06-28 19:37:23 +01:00
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
imports = [./home/personal.nix];
|
|
|
|
home = {
|
|
|
|
username = "xenia";
|
|
|
|
homeDirectory = "/home/xenia";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
bash.bashrcExtra = ''
|
|
|
|
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
}
|
|
|
|
];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
|
|
|
}
|