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-16 17:35:36 +01:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
...
|
2023-07-19 08:55:53 +01:00
|
|
|
} @ inputs: let
|
|
|
|
shell = "zsh";
|
|
|
|
in {
|
2023-07-16 17:35:36 +01:00
|
|
|
nixosConfigurations = let
|
|
|
|
userConfig = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Evie Litherland-Smith";
|
2023-07-18 09:15:40 +01:00
|
|
|
group = "users";
|
|
|
|
extraGroups = ["networkmanager" "wheel" "video"];
|
2023-07-19 08:55:53 +01:00
|
|
|
shell = pkgs.${shell};
|
2023-07-16 17:35:36 +01:00
|
|
|
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
|
2023-06-22 09:03:42 +01:00
|
|
|
};
|
2023-07-19 08:55:53 +01:00
|
|
|
specialArgs = {inherit inputs shell userConfig;};
|
2023-07-16 17:35:36 +01:00
|
|
|
waybar-experimental-overlay = final: prev: {
|
|
|
|
waybar = prev.waybar.overrideAttrs (oldAttrs: {
|
|
|
|
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
|
|
|
});
|
2023-06-22 14:31:35 +01:00
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = [
|
|
|
|
waybar-experimental-overlay
|
|
|
|
inputs.neovim-nightly-overlay.overlay
|
2023-06-28 19:37:23 +01:00
|
|
|
];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
in {
|
|
|
|
Legion = let
|
|
|
|
hostname = "Legion";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
inherit pkgs specialArgs;
|
|
|
|
modules = [./hosts/${hostname}/configuration.nix];
|
|
|
|
};
|
|
|
|
Vanguard = let
|
|
|
|
hostname = "Vanguard";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
inherit pkgs specialArgs;
|
|
|
|
modules = [./hosts/${hostname}/configuration.nix];
|
|
|
|
};
|
|
|
|
Ronin = let
|
|
|
|
hostname = "Ronin";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
inherit pkgs specialArgs;
|
|
|
|
modules = [./hosts/${hostname}/configuration.nix];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
homeConfigurations = let
|
2023-07-19 08:55:53 +01:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
shellConfig = ./home/shell/${shell}.nix;
|
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
in {
|
|
|
|
# NixOS home configurations
|
|
|
|
"xenia@Vanguard" = let
|
|
|
|
hostname = "Vanguard";
|
|
|
|
pkgs = self.nixosConfigurations.${hostname}.pkgs;
|
|
|
|
in
|
|
|
|
home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs extraSpecialArgs;
|
|
|
|
modules = [./hosts/${hostname}/home.nix];
|
|
|
|
};
|
2023-07-16 18:51:45 +01:00
|
|
|
"xenia@Legion" = let
|
|
|
|
hostname = "Legion";
|
|
|
|
pkgs = self.nixosConfigurations.${hostname}.pkgs;
|
|
|
|
in
|
|
|
|
home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs extraSpecialArgs;
|
|
|
|
modules = [./hosts/${hostname}/home.nix];
|
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
"elitherl@Ronin" = let
|
|
|
|
hostname = "Ronin";
|
|
|
|
pkgs = self.nixosConfigurations.${hostname}.pkgs;
|
|
|
|
in
|
|
|
|
home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs extraSpecialArgs;
|
|
|
|
modules = [./hosts/${hostname}/home.nix];
|
|
|
|
};
|
|
|
|
# Legacy home configurations
|
|
|
|
"tux@Monarch" = let
|
|
|
|
hostname = "Monarch";
|
|
|
|
system = "aarch64-darwin";
|
2023-07-16 18:41:00 +01:00
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2023-07-16 17:35:36 +01:00
|
|
|
in
|
|
|
|
home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs extraSpecialArgs;
|
|
|
|
modules = [./hosts/${hostname}/home.nix];
|
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
|
|
|
}
|