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-07-13 12:41:00 +01:00
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
doom-emacs.url = "git+https://git.xenia.me.uk/xenia/emacs.git";
|
2023-07-24 13:27:05 +01:00
|
|
|
wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git";
|
|
|
|
tokyonight = {
|
|
|
|
url = "github:folke/tokyonight.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
|
2023-07-25 16:14:50 +01:00
|
|
|
outputs = { self, nixpkgs, home-manager, hyprland, doom-emacs, wallpapers
|
|
|
|
, tokyonight, }:
|
|
|
|
let shell = "zsh";
|
2023-07-16 17:35:36 +01:00
|
|
|
in {
|
2023-07-25 16:14:50 +01:00
|
|
|
nixosConfigurations = let
|
|
|
|
userConfig = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Evie Litherland-Smith";
|
|
|
|
group = "users";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "video" ];
|
|
|
|
shell = pkgs.${shell};
|
|
|
|
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
|
|
|
|
};
|
|
|
|
specialArgs = { inherit shell userConfig hyprland; };
|
|
|
|
waybar-experimental-overlay = final: prev: {
|
|
|
|
waybar = prev.waybar.overrideAttrs (oldAttrs: {
|
|
|
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
|
|
|
});
|
|
|
|
};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays =
|
|
|
|
[ waybar-experimental-overlay doom-emacs.outputs.overlay.default ];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
Legion = let hostname = "Legion";
|
|
|
|
in nixpkgs.lib.nixosSystem {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit pkgs specialArgs;
|
2023-07-25 16:14:50 +01:00
|
|
|
modules = [ ./hosts/${hostname}/configuration.nix ];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
Vanguard = let hostname = "Vanguard";
|
|
|
|
in nixpkgs.lib.nixosSystem {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit pkgs specialArgs;
|
2023-07-26 11:04:41 +01:00
|
|
|
modules = [ ./hosts/${hostname}/configuration.nix ];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
Ronin = let hostname = "Ronin";
|
|
|
|
in nixpkgs.lib.nixosSystem {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit pkgs specialArgs;
|
2023-07-26 11:04:41 +01:00
|
|
|
modules = [ ./hosts/${hostname}/configuration.nix ];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-19 08:55:53 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
homeConfigurations = let
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit hyprland wallpapers tokyonight;
|
|
|
|
shellConfig = ./home/shell/${shell}.nix;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
# NixOS home configurations
|
|
|
|
"xenia@Vanguard" = let
|
|
|
|
hostname = "Vanguard";
|
|
|
|
pkgs = self.nixosConfigurations.${hostname}.pkgs;
|
|
|
|
in home-manager.lib.homeManagerConfiguration {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit pkgs extraSpecialArgs;
|
2023-07-25 16:14:50 +01:00
|
|
|
modules = [ ./hosts/${hostname}/home.nix ];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
"xenia@Legion" = let
|
|
|
|
hostname = "Legion";
|
|
|
|
pkgs = self.nixosConfigurations.${hostname}.pkgs;
|
|
|
|
in home-manager.lib.homeManagerConfiguration {
|
2023-07-16 18:51:45 +01:00
|
|
|
inherit pkgs extraSpecialArgs;
|
2023-07-25 16:14:50 +01:00
|
|
|
modules = [ ./hosts/${hostname}/home.nix ];
|
2023-07-16 18:51:45 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
"elitherl@Ronin" = let
|
|
|
|
hostname = "Ronin";
|
|
|
|
pkgs = self.nixosConfigurations.${hostname}.pkgs;
|
|
|
|
in home-manager.lib.homeManagerConfiguration {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit pkgs extraSpecialArgs;
|
2023-07-25 13:57:55 +01:00
|
|
|
modules = [
|
|
|
|
./hosts/${hostname}/home.nix
|
|
|
|
doom-emacs.outputs.homeManagerModules.default
|
|
|
|
];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
# Legacy home configurations
|
|
|
|
"tux@Monarch" = let
|
|
|
|
hostname = "Monarch";
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in home-manager.lib.homeManagerConfiguration {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit pkgs extraSpecialArgs;
|
2023-07-26 11:04:41 +01:00
|
|
|
modules = [
|
|
|
|
./hosts/${hostname}/home.nix
|
|
|
|
doom-emacs.outputs.homeManagerModules.default
|
|
|
|
];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
}
|