cleanup flake

This commit is contained in:
Adithya 2023-03-25 22:10:42 +05:30
parent 9ff2bd4e96
commit 51d6111302
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,4 +1,6 @@
{
description = "NixOS Configuration";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
@ -19,22 +21,28 @@
};
};
outputs = { self, nixpkgs, home-manager, impermanence, lanzaboote }@inputs: {
nixosConfigurations = {
Skipper = nixpkgs.lib.nixosSystem rec {
outputs = {
self,
nixpkgs,
home-manager,
impermanence,
lanzaboote,
} @ inputs: let
system = "x86_64-linux";
lib = nixpkgs.lib;
in {
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
nixosConfigurations = {
Skipper = lib.nixosSystem {
specialArgs = inputs;
modules = [
./system/nix.nix
{
nixpkgs.overlays = [
(import ./packages) # Overlay adding all custom packages
];
nixpkgs.overlays = [(import ./packages)];
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
}
{ system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; }
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
lanzaboote.nixosModules.lanzaboote