56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
{
|
|
description = "flake for matt-nixos";
|
|
|
|
inputs = {
|
|
# Common
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
# Desktop
|
|
kde.url = "github:nix-community/kde2nix";
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
# impermanence.url = "github:nix-community/impermanence";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Pi4
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
};
|
|
|
|
# outputs = { self, nixpkgs, impermanence, lanzaboote } @ inputs: {
|
|
outputs = { self, nixpkgs, lanzaboote, kde, nix-flatpak, home-manager, nixos-hardware } @ inputs: {
|
|
nixosConfigurations = {
|
|
# Desktop
|
|
"matt-nixos" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
# impermanence.nixosModules.impermanence
|
|
lanzaboote.nixosModules.lanzaboote
|
|
kde.nixosModules.plasma6
|
|
nix-flatpak.nixosModules.nix-flatpak
|
|
./configuration.nix
|
|
# ./impermanence.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.matt = import ./home.nix;
|
|
}
|
|
];
|
|
};
|
|
|
|
# Pi4
|
|
"nixos-pi4" = nixpkgs.lib.nixosSystem {
|
|
system = "aarch64-linux";
|
|
modules = [
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
./configuration-pi4.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|