nixos-config/flake.nix

31 lines
878 B
Nix
Raw Normal View History

2022-12-18 17:01:34 +01:00
{
2022-12-19 15:45:59 +01:00
description = "My nix setup";
2022-12-18 17:01:34 +01:00
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-22.11;
home-manager.url = github:nix-community/home-manager;
home-manager.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = github:Mic92/sops-nix;
2022-12-27 18:21:33 +01:00
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
2023-01-04 16:15:56 +01:00
awesome-config.url=github:therealr5/awesome-config;
2022-12-18 17:01:34 +01:00
};
2023-01-04 16:15:56 +01:00
outputs = { self, nixpkgs, home-manager, sops-nix, awesome-config }: {
2022-12-18 17:01:34 +01:00
nixosConfigurations = {
thinkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2022-12-19 20:07:28 +01:00
./hosts/thinkpad
./users/rouven
2022-12-18 17:07:40 +01:00
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops
2023-01-04 16:15:56 +01:00
{
home-manager.users.rouven = {
imports = [ awesome-config.nixosModules.awesome ];
};
}
2022-12-18 17:01:34 +01:00
];
};
};
};
}