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";
|
|
|
|
};
|
|
|
|
|
2023-04-01 23:20:13 +05:30
|
|
|
home-manager = {
|
2023-04-02 00:30:38 +05:30
|
|
|
url = "github:nix-community/home-manager";
|
2023-03-15 22:11:59 +05:30
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-04-02 21:52:25 +05:30
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-03-15 22:11:59 +05:30
|
|
|
impermanence = {
|
2023-04-02 00:30:38 +05:30
|
|
|
url = "github:nix-community/impermanence";
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
|
2023-04-01 23:20:13 +05:30
|
|
|
lanzaboote = {
|
2023-04-02 00:30:38 +05:30
|
|
|
url = "github:nix-community/lanzaboote";
|
2023-04-01 23:20:13 +05:30
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixvim = {
|
2023-04-02 00:30:38 +05:30
|
|
|
url = "github:pta2002/nixvim";
|
2023-03-15 22:11:59 +05:30
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-04 09:04:29 +05:30
|
|
|
outputs = { self, nixpkgs, home-manager, hyprland, impermanence, lanzaboote, nixvim }@inputs:
|
2023-03-29 21:48:55 +05:30
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter.${system} = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
|
|
|
nixosConfigurations = {
|
|
|
|
Skipper = lib.nixosSystem {
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
2023-04-04 09:17:30 +05:30
|
|
|
./nix.nix
|
2023-03-29 21:48:55 +05:30
|
|
|
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [ (import ./packages) ];
|
|
|
|
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
|
|
|
|
}
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-04-02 21:52:25 +05:30
|
|
|
hyprland.nixosModules.default
|
2023-03-29 21:48:55 +05:30
|
|
|
impermanence.nixosModules.impermanence
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
|
|
|
|
|
|
|
./system
|
|
|
|
./users
|
|
|
|
./home
|
|
|
|
];
|
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|