dotfiles/flake.nix

84 lines
2.7 KiB
Nix

{
description = "Nixos config";
inputs = {
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable"; };
nixpkgs-update = { url = "github:ryantm/nixpkgs-update"; };
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
dagger.url = "github:dagger/nix";
dagger.inputs.nixpkgs.follows = "nixpkgs";
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";
};
suyu.url = "github:Noodlez1232/suyu-flake";
nix-alien.url = "github:thiagokokada/nix-alien";
};
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="
];
};
outputs = { nixpkgs, home-manager, nixgl, w17, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
system = "${system}";
overlays = [ nixgl.overlay ];
allowUnfree = true;
};
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; };
};
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;
modules = [ ./configs/fedora/home.nix ];
extraSpecialArgs = { inherit inputs nixgl; };
};
homeConfigurations."thilo@thilo-pc-win" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./configs/wsl/home.nix ];
extraSpecialArgs = { inherit inputs nixgl; };
};
};
}