💾 Changed flakes to use latest stable where possible
This commit is contained in:
17
flake.nix
17
flake.nix
@ -2,22 +2,28 @@
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
url = "github:nix-community/home-manager/release-24.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim";
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
stylix = {
|
||||
url = "github:danth/stylix/release-24.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
stylix.url = "github:danth/stylix";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs@{
|
||||
self, # Get a ref to outputs
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
home-manager,
|
||||
stylix,
|
||||
...
|
||||
@ -28,7 +34,7 @@
|
||||
in
|
||||
{
|
||||
# Adds the nix fmt command to format nix files
|
||||
formatter."${system}" = nixpkgs.legacyPackages."${system}".nixfmt-rfc-style;
|
||||
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
||||
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
@ -52,8 +58,9 @@
|
||||
};
|
||||
|
||||
overlays = {
|
||||
# Gives access to unstable packages everywhere
|
||||
unstable-packages = final: _prev: {
|
||||
unstable = import inputs.nixpkgs {
|
||||
unstable = import nixpkgs-unstable {
|
||||
system = final.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user