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