dotfiles/flake.nix

98 lines
3.1 KiB
Nix
Raw Normal View History

2023-10-28 23:16:29 +02:00
{
description = "Nixos config";
inputs = {
2024-02-27 02:54:02 +01:00
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable"; };
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";
};
2024-02-09 13:55:32 +01:00
dagger.url = "github:dagger/nix";
dagger.inputs.nixpkgs.follows = "nixpkgs";
2024-03-10 21:27:03 +01:00
nixgl = {
url = "github:guibou/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
muse-sounds-manager = {
url = "github:thilobillerbeck/muse-sounds-manager-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
w17 = {
url = "git+https://git.darmstadt.ccc.de/avocadoom/w17-cli.git";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-21 02:22:36 +01:00
suyu.url = "github:Noodlez1232/suyu-flake";
2024-03-24 01:50:09 +01:00
nix-alien.url = "github:thiagokokada/nix-alien";
2024-05-13 14:28:18 +02:00
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-28 23:16:29 +02:00
};
2024-03-23 15:15:15 +01:00
nixConfig = {
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
"https://nixpkgs-update.cachix.org"
"https://devenv.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
};
2024-03-05 23:42:08 +01:00
outputs = { nixpkgs, home-manager, nixgl, w17, ... }@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 ];
2024-03-24 14:25:13 +01:00
allowUnfree = true;
2024-02-13 00:08:01 +01:00
};
2024-02-27 02:54:02 +01:00
in {
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; };
};
homeConfigurations."thilo@thilo-pc" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2024-05-13 14:28:18 +02:00
modules = [
inputs.nix-index-database.hmModules.nix-index
./configs/fedora/home.nix
];
extraSpecialArgs = { inherit inputs nixgl; };
};
2024-05-03 20:19:31 +02:00
homeConfigurations."thilo@thilo-laptop" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./configs/fedora/home.nix ];
extraSpecialArgs = { inherit inputs nixgl; };
};
2024-02-27 02:54:02 +01:00
homeConfigurations."thilo@thilo-pc-win" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./configs/wsl/home.nix ];
extraSpecialArgs = { inherit inputs nixgl; };
2024-02-27 02:54:02 +01:00
};
2023-10-28 23:16:29 +02:00
};
}