nixos-config/flake.nix
2024-07-07 21:56:12 +02:00

33 lines
824 B
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 = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home/rothe.nix ];
};
};
};
}