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,
|
|
|
|
...
|
|
|
|
} @ inputs: {
|
|
|
|
nixosConfigurations = let
|
|
|
|
topLevel = ./.;
|
|
|
|
userConfig = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Evie Litherland-Smith";
|
|
|
|
extraGroups = ["networkmanager" "wheel"];
|
|
|
|
shell = pkgs.fish;
|
|
|
|
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
|
2023-06-22 09:03:42 +01:00
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
specialArgs = {inherit inputs topLevel userConfig;};
|
|
|
|
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
|
|
|
|
extraSpecialArgs = {inherit inputs;};
|
|
|
|
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];
|
|
|
|
};
|
|
|
|
"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
|
|
|
};
|
|
|
|
}
|