nixos-with-flakes/downgrade-or-upgrade-packages #136
Replies: 1 comment 1 reply
-
This might be obvious but it wasn't for me, so I'll leave it here in case anyone else encounters the same problem; {
description = "Main NixOS flake";
inputs = {
# NixOS official package source, using the nixos-23.11 branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# fw-fanctrl.url = "github:mdvmeijer/fw-fanctrl-nix";
};
outputs = inputs@{
self,
nixpkgs,
nixpkgs-unstable,
nixos-hardware,
home-manager,
...
}: {
nixosConfigurations.<hostname> = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
# Hardware definition from https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
nixos-hardware.nixosModules.framework-12th-gen-intel
./default.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.<user> = import ./users/<user>/home.nix;
home-manager.extraSpecialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
}
];
};
};
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nixos-with-flakes/downgrade-or-upgrade-packages
An unofficial and opinionated book for beginners
https://nixos-and-flakes.thiscute.world/nixos-with-flakes/downgrade-or-upgrade-packages
Beta Was this translation helpful? Give feedback.
All reactions