{ 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]; home-manager = { useGlobalPkgs = true; useUserPackages = false; }; }; hyprland-config = { imports = [hyprland.homeManagerModules.default]; 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/common.nix ./hosts/Legion/configuration.nix ./services/Legion.nix ]; }; Vanguard = nixpkgs.lib.nixosSystem { pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; overlays = [waybar-experimental]; }; modules = [ home-config hyprland.nixosModules.default ./hosts/common.nix ./hosts/Vanguard/configuration.nix ./services/sshd { security.pam.services.swaylock = {}; programs.hyprland.enable = true; home-manager.users.xenia = { imports = [ hyprland-config ./hosts/Vanguard/users/xenia.nix ./home/personal.nix ./home/gui ./home/desktop/hyprland.nix ]; }; } ]; }; N0245 = nixpkgs.lib.nixosSystem { pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; overlays = [waybar-experimental]; }; modules = [ home-config hyprland.nixosModules.default ./hosts/common.nix ./hosts/N0245/configuration.nix ./services/syncthing/N0245.nix { hardware.bluetooth.enable = true; security.pam.services.swaylock = {}; programs.hyprland.enable = true; home-manager.users.elitherl = { imports = [ hyprland-config ./hosts/N0245/users/elitherl.nix ./home/work.nix ./home/gui ./home/desktop/hyprland.nix ]; }; } ]; }; }; 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]; }; }; }; }