2023-03-15 22:11:59 +05:30
|
|
|
{
|
2023-03-25 22:10:42 +05:30
|
|
|
description = "NixOS Configuration";
|
|
|
|
|
2023-03-15 22:11:59 +05:30
|
|
|
inputs = {
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
impermanence = {
|
|
|
|
url = "github:nix-community/impermanence/master";
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-29 21:48:55 +05:30
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgs
|
|
|
|
, home-manager
|
|
|
|
, impermanence
|
|
|
|
, lanzaboote
|
|
|
|
,
|
|
|
|
} @ inputs:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter.${system} = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
|
|
|
nixosConfigurations = {
|
|
|
|
Skipper = lib.nixosSystem {
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
|
|
|
./system/nix.nix
|
|
|
|
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [ (import ./packages) ];
|
|
|
|
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
|
|
|
|
}
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
impermanence.nixosModules.impermanence
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
|
|
|
|
|
|
|
./system
|
|
|
|
./users
|
|
|
|
./home
|
|
|
|
];
|
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|