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-08-08 09:51:14 +01:00
|
|
|
anyrun = {
|
|
|
|
url = "github:Kirottu/anyrun";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
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-08-31 12:22:29 +01:00
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs, home-manager, hyprland, anyrun, wallpapers, tokyonight, }:
|
|
|
|
let
|
|
|
|
systemConfig =
|
|
|
|
{ hostName, user ? "xenia", system ? "x86_64-linux", shell ? "zsh" }:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
waybar = prev.waybar.overrideAttrs (oldAttrs: {
|
|
|
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2023-07-25 16:14:50 +01:00
|
|
|
in nixpkgs.lib.nixosSystem {
|
2023-08-31 12:22:29 +01:00
|
|
|
inherit pkgs;
|
|
|
|
specialArgs = { inherit hostName user shell hyprland; };
|
|
|
|
modules = [
|
|
|
|
./hosts/${hostName}/configuration.nix
|
|
|
|
./services/${hostName}.nix
|
|
|
|
{
|
|
|
|
networking = { inherit hostName; };
|
|
|
|
users.users.${user} = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Evie Litherland-Smith";
|
|
|
|
group = "users";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "video" ];
|
|
|
|
shell = pkgs.${shell};
|
|
|
|
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = false;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit user hyprland anyrun wallpapers tokyonight;
|
|
|
|
shellConfig = ./home/shell/${shell}.nix;
|
|
|
|
};
|
|
|
|
users.${user} = import ./hosts/${hostName}/home.nix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-08-31 12:22:29 +01:00
|
|
|
homeConfig = { hostName, user, system ? "x86_64-linux", shell ? "zsh" }:
|
|
|
|
home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit user shell hyprland anyrun wallpapers tokyonight;
|
|
|
|
shellConfig = ./home/shell/${shell}.nix;
|
|
|
|
};
|
|
|
|
modules = [ ./hosts/${hostName}/home.nix ];
|
2023-07-25 16:14:50 +01:00
|
|
|
};
|
2023-08-31 12:22:29 +01:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
|
|
Legion = systemConfig {
|
|
|
|
hostName = "Legion";
|
2023-08-31 12:33:10 +01:00
|
|
|
user = "xenia";
|
2023-08-31 12:22:29 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
shell = "zsh";
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-08-31 12:22:29 +01:00
|
|
|
Ronin = systemConfig {
|
|
|
|
hostName = "Ronin";
|
|
|
|
user = "elitherl";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
shell = "zsh";
|
2023-07-16 18:51:45 +01:00
|
|
|
};
|
2023-08-31 12:22:29 +01:00
|
|
|
Vanguard = systemConfig {
|
|
|
|
hostName = "Vanguard";
|
|
|
|
user = "xenia";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
shell = "zsh";
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-08-31 12:22:29 +01:00
|
|
|
};
|
|
|
|
homeConfigurations = {
|
|
|
|
"tux@Monarch" = homeConfig {
|
|
|
|
hostName = "Monarch";
|
|
|
|
user = "tux";
|
2023-07-25 16:14:50 +01:00
|
|
|
system = "aarch64-darwin";
|
2023-08-31 12:22:29 +01:00
|
|
|
shell = "zsh";
|
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
|
|
|
}
|