dotfiles/flake.nix

64 lines
1.8 KiB
Nix
Raw Normal View History

2023-10-28 23:16:29 +02:00
{
description = "Nixos config";
inputs = {
nixpkgs = {
2024-02-06 18:29:19 +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";
2024-02-09 13:55:32 +01:00
dagger.url = "github:dagger/nix";
dagger.inputs.nixpkgs.follows = "nixpkgs";
2024-02-13 00:08:01 +01:00
nixgl.url = "github:guibou/nixGL";
2023-10-28 23:16:29 +02:00
};
2024-02-13 00:08:01 +01:00
outputs = { self, nixpkgs, home-manager, nixgl, ... }@inputs:
2023-10-28 23:51:26 +02:00
let
2023-10-28 23:16:29 +02:00
system = "x86_64-linux";
2024-02-13 00:08:01 +01:00
pkgs = import nixpkgs {
system = "${system}";
overlays = [ nixgl.overlay ];
};
2023-10-28 23:51:26 +02:00
in
{
2024-02-13 00:08:01 +01:00
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
2023-10-28 23:51:26 +02:00
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
};
}