Closed hcesaropz closed 8 months ago
You need to use newer nixpkgs.
I... am?
# /etc/nixos/flake.nix
# it's ugly as hell, I know
{
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
# nixpkgs/nixos-unstable: Nixpkgs Unstable
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# nix-community/lanzaboote: UEFI Secure Boot for NixOS
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
};
# gmodena/nix-flatpak: declarative Flatpaks
nix-flatpak.url = "github:gmodena/nix-flatpak";
# nix-community/kde2nix: Plasma 6 beta
kde2nix.url = "github:nix-community/kde2nix";
# thiagokokada/nix-alien: run unpatched binaries
nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, lanzaboote, nix-flatpak, kde2nix, nix-alien, ... }: {
nixosConfigurations.syndicate = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
lanzaboote.nixosModules.lanzaboote
nix-flatpak.nixosModules.nix-flatpak
kde2nix.nixosModules.plasma6
./configuration.nix
({ self, system, ... }: { environment.systemPackages = with self.inputs.nix-alien.packages.${system}; [ nix-alien ]; progra>
({ boot.lanzaboote = { enable = true; pkiBundle = "/etc/secureboot"; }; })
];
};
};
}
Run nix flake update
then.
Run
nix flake update
then.
wait inputs are updated separately?? oh thanks
Separately from what?
Separately from what?
well, I, uh, usually just run sudo nixos-rebuild switch --upgrade
and hope everything works.
please forgive my idiocy, I've only been using NixOS for ~2 months and didn't even know nix flake update
existed until a few minutes ago