nixos-config/flake.nix

42 lines
1.0 KiB
Nix

{
description = "NixOS configuration flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ...}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
lift = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
./sway.nix
./hardware-configuration.nix
];
};
};
homeConfigurations = {
"rothe@lift" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home/rothe.nix
./home/wayland
];
};
"rothe@johannes-powermachine" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home/rothe.nix
];
};
};
};
}