nixos-laptop/flake.nix

75 lines
1.9 KiB
Nix
Raw Normal View History

2023-10-08 14:57:57 +00:00
{
description = "My NixOS configuration";
inputs = {
2023-12-03 12:35:17 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2023-10-09 09:25:17 +00:00
nur.url = "github:nix-community/NUR";
2024-02-18 21:05:23 +00:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2023-10-08 16:03:14 +00:00
home-manager = {
url = "github:nix-community/home-manager?ref=release-23.11";
2023-10-08 16:03:14 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-02-18 21:05:23 +00:00
homeage = {
url = "github:jordanisaacs/homeage";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-02-18 21:05:23 +00:00
2023-10-14 17:08:02 +00:00
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
2024-02-18 21:05:23 +00:00
2024-01-29 20:05:48 +00:00
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.3.0";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-08 14:57:57 +00:00
};
2023-11-05 17:49:51 +00:00
outputs =
{ nixpkgs
, nixpkgs-unstable
, home-manager
, homeage
, agenix
, nur
, nixos-hardware
2024-01-29 20:05:48 +00:00
, lanzaboote
, ...
}: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
2023-11-05 17:49:51 +00:00
nixosConfigurations.pim = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
{
nixpkgs.overlays = [
nur.overlay
(final: _prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
})
];
}
./nixos
agenix.nixosModules.default
nixos-hardware.nixosModules.lenovo-thinkpad-x260
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.pim = {
imports = [ ./home-manager homeage.homeManagerModules.homeage ];
};
}
2024-01-29 20:05:48 +00:00
lanzaboote.nixosModules.lanzaboote
];
};
2023-10-08 14:57:57 +00:00
};
}