mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 07:25:40 +00:00
- Added lanzaboote - Disabled systemd-boot in favor of lanzaboote - Added sbctl
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixcord = {
|
|
url = "github:kaylorben/nixcord";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.4.2";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... } @ inputs:
|
|
let
|
|
rootPath = ./.;
|
|
in
|
|
{
|
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs rootPath; };
|
|
modules = [
|
|
./hosts/nixos/configuration.nix
|
|
];
|
|
};
|
|
homeConfigurations."toast@nixos" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs rootPath; };
|
|
modules = [
|
|
./home/toast/home.nix
|
|
];
|
|
};
|
|
|
|
packages.x86_64-linux.default = self.homeConfigurations."toast@nixos".activationPackage;
|
|
};
|
|
}
|