dotfiles/flake.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2023-10-28 23:16:29 +02:00
{
description = "Nixos config";
inputs = {
nixpkgs = {
2023-11-21 01:43:39 +01:00
url = "github:NixOS/nixpkgs/nixos-unstable";
2023-10-28 23:16:29 +02:00
};
2023-11-07 02:55:10 +01:00
nixpkgs-update = {
url = "github:ryantm/nixpkgs-update";
};
2023-10-28 23:16:29 +02:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-software-center.url = "github:vlinkz/nix-software-center";
devenv.url = "github:cachix/devenv";
};
2023-10-28 23:51:26 +02:00
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
2023-10-28 23:16:29 +02:00
system = "x86_64-linux";
2023-10-29 00:42:21 +02:00
pkgs = nixpkgs.legacyPackages.${system};
2023-10-28 23:51:26 +02:00
in
{
nixosConfigurations.thilo-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
./configs/thilo-pc/nixos.nix
./configs/thilo-pc/home.nix
];
specialArgs = { inherit inputs; };
};
2023-11-06 23:43:36 +01:00
nixosConfigurations.thilo-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
./configs/thilo-laptop/nixos.nix
./configs/thilo-laptop/home.nix
];
specialArgs = { inherit inputs; };
};
2023-10-29 00:42:21 +02:00
homeConfigurations."thilo@thilo-pc-win" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2023-10-29 01:26:34 +02:00
modules = [ ./configs/wsl/home.nix ];
2023-10-29 00:42:21 +02:00
extraSpecialArgs = { inherit inputs; };
};
2023-10-28 23:16:29 +02:00
};
}