152 lines
4.1 KiB
Nix
152 lines
4.1 KiB
Nix
{
|
|
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";
|
|
};
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git";
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
home-manager,
|
|
hyprland,
|
|
wallpapers,
|
|
...
|
|
}: let
|
|
home-config = {
|
|
imports = [home-manager.nixosModules.home-manager ./users/root];
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = false;
|
|
users.root.imports = [./home/env/bash.nix ./home/env/starship.nix];
|
|
};
|
|
};
|
|
hyprland-config = {pkgs, ...}: {
|
|
imports = [hyprland.nixosModules.default];
|
|
environment.systemPackages = with pkgs; [
|
|
gsettings-desktop-schemas
|
|
pavucontrol
|
|
pamixer
|
|
pulseaudio
|
|
pipewire
|
|
wireplumber
|
|
wl-clipboard
|
|
swayimg
|
|
hyprpaper
|
|
grim
|
|
slurp
|
|
];
|
|
security.pam.services.swaylock = {};
|
|
programs = {
|
|
hyprland.enable = true;
|
|
thunar = {
|
|
enable = true;
|
|
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
|
};
|
|
};
|
|
services = {
|
|
gvfs.enable = true; # Mount, trash, and other functionalities
|
|
tumbler.enable = true; # Thumbnail support for images
|
|
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;
|
|
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
|
preload = ${wallpapers.outputs.default}
|
|
wallpaper = ,${wallpapers.outputs.default}
|
|
'';
|
|
};
|
|
waybar-experimental = self: super: {waybar = super.waybar.overrideAttrs (oldAttrs: {mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];});};
|
|
in {
|
|
nixosConfigurations = {
|
|
Legion = nixpkgs.lib.nixosSystem {
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
config.allowUnfree = true;
|
|
};
|
|
modules = [
|
|
home-config
|
|
./hosts/Legion
|
|
./users/xenia
|
|
./services/Legion.nix
|
|
];
|
|
};
|
|
Vanguard = nixpkgs.lib.nixosSystem {
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
config.allowUnfree = true;
|
|
overlays = [waybar-experimental];
|
|
};
|
|
modules = [
|
|
home-config
|
|
hyprland-config
|
|
./hosts/Vanguard
|
|
./users/xenia
|
|
./services/sshd
|
|
./services/syncthing/Vanguard.nix
|
|
{home-manager.users.xenia.imports = [hyprland-home-config];}
|
|
];
|
|
};
|
|
Ronin = nixpkgs.lib.nixosSystem {
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
config.allowUnfree = true;
|
|
overlays = [waybar-experimental];
|
|
};
|
|
modules = [
|
|
home-config
|
|
hyprland-config
|
|
./hosts/Ronin
|
|
./users/elitherl/Ronin.nix
|
|
./services/syncthing/Ronin.nix
|
|
{home-manager.users.elitherl.imports = [hyprland-home-config];}
|
|
];
|
|
};
|
|
};
|
|
homeConfigurations = {
|
|
"tux@Monarch" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs =
|
|
import nixpkgs
|
|
{
|
|
system = "aarch64-darwin";
|
|
config.allowUnfree = true;
|
|
}
|
|
.legacyPackages
|
|
."aarch64-darwin";
|
|
modules = [./hosts/Monarch/home.nix];
|
|
};
|
|
"xenia@Northstar" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs =
|
|
import nixpkgs
|
|
{
|
|
system = "aarch64-linux";
|
|
config.allowUnfree = true;
|
|
}
|
|
.legacyPackages
|
|
."aarch64-linux";
|
|
modules = [./hosts/Northstar/home.nix];
|
|
};
|
|
};
|
|
};
|
|
}
|