nixos-config/flake.nix

41 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-03-08 22:46:38 +01:00
{
description = "NixOS configuration flake";
inputs = {
2024-06-10 19:38:56 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
2024-03-09 22:37:11 +01:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-07-10 22:56:31 +02:00
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-08 22:46:38 +01:00
};
2024-07-10 22:56:31 +02:00
outputs = { self, nixpkgs, home-manager, nixos-generators,...}:
2024-03-08 22:46:38 +01:00
let
2024-03-09 22:37:11 +01:00
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2024-03-08 22:46:38 +01:00
in {
nixosConfigurations = {
2024-03-09 22:37:11 +01:00
lift = nixpkgs.lib.nixosSystem {
2024-07-07 21:56:12 +02:00
inherit system;
2024-03-09 22:37:11 +01:00
modules = [
./configuration.nix
./sway.nix
./hardware-configuration.nix
];
};
};
homeConfigurations = {
rothe = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home/rothe.nix ];
2024-03-08 22:46:38 +01:00
};
};
2024-07-10 22:56:31 +02:00
box = nixos-generators.nixosGenerate {
system = "x86_64-linux";
format = "vm";
};
2024-03-08 22:46:38 +01:00
};
}