Files
nixos-config/flake.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2023-03-27 12:44:37 +02:00
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-07-31 17:39:46 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-07-29 22:33:53 +02:00
website = {
url = "github:thiloho/website";
flake = false;
};
aurora-blog-template.url = "github:thiloho/aurora";
2023-09-07 17:21:34 +02:00
firefox.url = "github:colemickens/flake-firefox-nightly";
2023-03-27 12:44:37 +02:00
};
2023-08-07 09:41:23 +02:00
outputs = inputs@{ nixpkgs, home-manager, ... }: {
2023-06-27 17:52:44 +02:00
nixosConfigurations = let
mkSystem = entrypoint: nixpkgs.lib.nixosSystem {
2023-03-27 12:44:37 +02:00
system = "x86_64-linux";
2023-07-29 22:33:53 +02:00
specialArgs = { inherit inputs; };
2023-03-27 12:44:37 +02:00
modules = [
2023-08-04 09:32:11 +00:00
{ nix = {
nixPath = [ "nixpkgs=${nixpkgs}" ];
};
}
2023-06-27 17:52:44 +02:00
entrypoint
2023-03-27 12:44:37 +02:00
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
}
];
};
2023-06-27 17:52:44 +02:00
in {
pc = mkSystem ./nixos-configurations/pc;
laptop = mkSystem ./nixos-configurations/laptop;
2023-07-02 00:18:17 +02:00
server = mkSystem ./nixos-configurations/server;
2023-08-25 09:39:26 +02:00
tvpc = mkSystem ./nixos-configurations/tvpc;
2023-03-27 12:44:37 +02:00
};
};
}