dotfiles/flake.nix

60 lines
2 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";
};
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";
2024-02-14 00:05:08 +01:00
muse-sounds-manager.url = "github:thilobillerbeck/muse-sounds-manager-nix";
2024-03-05 23:42:08 +01:00
w17.url = "git+https://git.darmstadt.ccc.de/avocadoom/w17-cli.git";
2023-10-28 23:16:29 +02:00
};
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-02-27 02:54:02 +01:00
in {
2024-02-13 00:08:01 +01:00
nixConfig = {
2024-02-27 02:54:02 +01:00
extra-substituters = [ "https://nix-community.cachix.org" ];
2024-02-13 00:08:01 +01:00
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; };
};
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; };
};
2023-10-28 23:16:29 +02:00
};
}