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-26 13:23:27 +01:00
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-23 14:14:18 +01:00
|
|
|
wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git";
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
|
2023-06-24 09:10:26 +01:00
|
|
|
outputs = {
|
2023-06-21 17:41:35 +01:00
|
|
|
nixpkgs,
|
2023-06-21 20:49:28 +01:00
|
|
|
home-manager,
|
2023-06-26 13:23:27 +01:00
|
|
|
hyprland,
|
2023-06-24 09:10:26 +01:00
|
|
|
wallpapers,
|
2023-06-23 14:14:18 +01:00
|
|
|
...
|
2023-06-22 12:30:36 +01:00
|
|
|
}: let
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config = {
|
2023-06-26 15:08:44 +01:00
|
|
|
imports = [home-manager.nixosModules.home-manager ./users/root];
|
2023-06-22 12:48:11 +01:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = false;
|
2023-06-26 15:08:44 +01:00
|
|
|
users.root.imports = [./home/env/bash.nix ./home/env/starship.nix];
|
2023-06-22 12:48:11 +01:00
|
|
|
};
|
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
hyprland-config = {
|
2023-06-26 15:08:44 +01:00
|
|
|
imports = [hyprland.nixosModules.default];
|
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
programs.hyprland.enable = true;
|
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = rec {
|
|
|
|
initial_session.command = "Hyprland";
|
|
|
|
default_session = initial_session;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hyprland-home-config = {pkgs, ...}: {
|
|
|
|
imports = [
|
|
|
|
hyprland.homeManagerModules.default
|
|
|
|
./home/desktop/hyprland.nix
|
|
|
|
./home/gui
|
|
|
|
];
|
|
|
|
programs.firefox.package = pkgs.firefox-wayland;
|
2023-06-26 13:23:27 +01:00
|
|
|
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
|
|
|
preload = ${wallpapers.outputs.default}
|
|
|
|
wallpaper = ,${wallpapers.outputs.default}
|
|
|
|
'';
|
2023-06-22 12:30:36 +01:00
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
waybar-experimental = self: super: {waybar = super.waybar.overrideAttrs (oldAttrs: {mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];});};
|
2023-06-22 12:30:36 +01:00
|
|
|
in {
|
2023-06-21 21:23:51 +01:00
|
|
|
nixosConfigurations = {
|
2023-06-22 09:03:42 +01:00
|
|
|
Legion = nixpkgs.lib.nixosSystem {
|
2023-06-26 13:23:27 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2023-06-22 09:03:42 +01:00
|
|
|
modules = [
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config
|
2023-06-26 15:08:44 +01:00
|
|
|
./hosts/Legion
|
|
|
|
./users/xenia
|
2023-06-22 09:34:05 +01:00
|
|
|
./services/Legion.nix
|
2023-06-22 09:03:42 +01:00
|
|
|
];
|
|
|
|
};
|
2023-06-22 14:31:35 +01:00
|
|
|
Vanguard = nixpkgs.lib.nixosSystem {
|
2023-06-26 13:23:27 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = [waybar-experimental];
|
|
|
|
};
|
2023-06-22 14:31:35 +01:00
|
|
|
modules = [
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config
|
2023-06-26 15:08:44 +01:00
|
|
|
hyprland-config
|
|
|
|
./hosts/Vanguard
|
|
|
|
./users/xenia
|
2023-06-22 14:31:35 +01:00
|
|
|
./services/sshd
|
2023-06-26 15:08:44 +01:00
|
|
|
{home-manager.users.xenia.imports = [hyprland-home-config];}
|
2023-06-22 14:31:35 +01:00
|
|
|
];
|
|
|
|
};
|
2023-06-21 21:23:51 +01:00
|
|
|
N0245 = nixpkgs.lib.nixosSystem {
|
2023-06-26 13:23:27 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = [waybar-experimental];
|
|
|
|
};
|
2023-06-21 21:23:51 +01:00
|
|
|
modules = [
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config
|
2023-06-26 15:08:44 +01:00
|
|
|
hyprland-config
|
|
|
|
./hosts/N0245
|
|
|
|
./users/elitherl/N0245.nix
|
2023-06-22 09:27:39 +01:00
|
|
|
./services/syncthing/N0245.nix
|
2023-06-26 15:08:44 +01:00
|
|
|
{home-manager.users.elitherl.imports = [hyprland-home-config];}
|
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-06-26 13:23:27 +01:00
|
|
|
"tux@Monarch" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs =
|
|
|
|
import nixpkgs
|
|
|
|
{
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
}
|
|
|
|
.legacyPackages
|
|
|
|
."aarch64-darwin";
|
2023-06-22 09:34:05 +01:00
|
|
|
modules = [./hosts/Monarch/home.nix];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
"xenia@Northstar" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs =
|
|
|
|
import nixpkgs
|
|
|
|
{
|
|
|
|
system = "aarch64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
}
|
|
|
|
.legacyPackages
|
|
|
|
."aarch64-linux";
|
|
|
|
modules = [./hosts/Northstar/home.nix];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
|
|
|
}
|