nixos-config/flake.nix

51 lines
1.6 KiB
Nix
Raw Normal View History

{
inputs = {
2024-10-07 08:43:25 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2024-10-08 10:21:19 +02:00
home-manager.url = "github:nix-community/home-manager/master";
flatpaks.url = "github:gmodena/nix-flatpak/main";
2024-10-08 10:10:30 +02:00
anyrun.url = "github:anyrun-org/anyrun";
2024-10-10 21:15:27 +02:00
niri.url = "github:sodiboo/niri-flake";
2024-10-10 21:15:47 +02:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-10-08 10:10:30 +02:00
anyrun.inputs.nixpkgs.follows = "nixpkgs";
2024-10-10 21:15:27 +02:00
niri.inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-10 21:15:27 +02:00
outputs = { nixpkgs, home-manager, flatpaks, anyrun, niri, ... }: {
nixosConfigurations.ahrc-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2024-10-21 17:52:13 +02:00
niri.nixosModules.niri
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2024-10-08 10:10:30 +02:00
home-manager.users.ahurac.imports = [
flatpaks.homeManagerModules.nix-flatpak
anyrun.homeManagerModules.default
./ahrc-pc/home.nix
];
}
2024-10-10 21:15:47 +02:00
./ahrc-pc/configuration.nix
];
};
nixosConfigurations.ahrc-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2024-10-21 11:39:05 +02:00
niri.nixosModules.niri
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2024-10-08 10:10:30 +02:00
home-manager.users.ahurac.imports = [
flatpaks.homeManagerModules.nix-flatpak
anyrun.homeManagerModules.default
./ahrc-laptop/home.nix
];
}
2024-10-10 21:15:47 +02:00
./ahrc-laptop/configuration.nix
];
};
};
}