First commit

This commit is contained in:
2026-02-22 17:28:02 +01:00
parent 7a70268785
commit 6bacf1878e
9011 changed files with 114470 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
{
description = "NixOS + Home Manager configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hyprland = {
url = "github:hyprwm/HyprLand";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
home-manager = {
# consider pinning explicitly, e.g.:
# url = "github:nix-community/home-manager/release-25.05";
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
mkHost = host: lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./hosts/${host}/hardware-configuration.nix
./hosts/${host}/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
home-manager.extraSpecialArgs = { inherit inputs; };
# If you prefer to wire HM user(s) here globally, uncomment:
home-manager.users.henrov = import ./home/henrov/home.nix;
}
];
};
in
{
nixosConfigurations = {
traveldroid = mkHost "traveldroid";
};
packages.${system}.default =
self.nixosConfigurations.traveldroid.config.system.build.toplevel;
};
}