Skip to content

Commit

Permalink
refactor: update to nixos 23.11
Browse files Browse the repository at this point in the history
  • Loading branch information
msteen committed Feb 9, 2024
1 parent 6fd6d04 commit 68c5e90
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 51 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
# We use the latest stable release because it also acts as the fallback nixpkgs.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";

flake-compat = {
url = "github:edolstra/flake-compat";
Expand Down
2 changes: 1 addition & 1 deletion nixcfg/mkModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

stateVersion = mkOption {
type = types.str;
default = "23.05";
default = "23.11";
description = ''
The state version of this ${type} configuration.
Expand Down
12 changes: 6 additions & 6 deletions test/nixcfg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
sources = { };
moduleArgs = { };
modules = [ ./nixcfg/nixos/configs/hello.nix ];
stateVersion = "23.05";
stateVersion = "23.11";
system = "x86_64-linux";
};
ubuntu = {
channelName = "nixpkgs";
sources = { };
moduleArgs = { };
modules = [ ./nixcfg/nixos/configs/ubuntu ];
stateVersion = "23.05";
stateVersion = "23.11";
system = "x86_64-linux";
};
};
Expand All @@ -101,7 +101,7 @@
channelName = "nixpkgs";
sources = { inherit (sources) home-manager; };
moduleArgs = { };
stateVersion = "23.05";
stateVersion = "23.11";
system = "x86_64-linux";
users.matthijs = {
homeDirectory = "/home/matthijs";
Expand Down Expand Up @@ -215,7 +215,7 @@
sources = { };
moduleArgs = { };
modules = [ ./nixcfg/container/configs/hello.nix ];
stateVersion = "23.05";
stateVersion = "23.11";
system = "x86_64-linux";
};
};
Expand Down Expand Up @@ -249,7 +249,7 @@
};
pkgsPath = toString example.configurations.home.ubuntu_matthijs.pkgs.path;
in {
isStableNixpkgs = pkgsPath == sources.nixos-23_05;
isStableNixpkgs = pkgsPath == sources.nixos-23_11;
isNixcfgNixpkgs = pkgsPath == nixpkgs;
};
expected = {
Expand All @@ -261,7 +261,7 @@
testDefaultNixpkgs_3 = {
expr = let
example = exampleWith {
sources = removeAttrs sources [ "nixpkgs" "nixos-22_11" "nixos-23_05" "nixos-stable" "nixos-unstable" ];
sources = removeAttrs sources [ "nixpkgs" "nixos-22_11" "nixos-23_11" "nixos-stable" "nixos-unstable" ];
};
pkgsPath = toString example.configurations.home.ubuntu_matthijs.pkgs.path;
in
Expand Down
24 changes: 12 additions & 12 deletions test/nixcfg/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions test/nixcfg/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

inputs = {
nixos-22_11.url = "github:NixOS/nixpkgs/nixos-22.11";
nixos-23_05.url = "github:NixOS/nixpkgs/nixos-23.05";
nixos-23_11.url = "github:NixOS/nixpkgs/nixos-23.11";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-stable.follows = "nixos-23_05";
nixos-stable.follows = "nixos-23_11";
nixpkgs.follows = "nixos-stable";

extra-container = {
Expand All @@ -14,8 +14,8 @@
};

home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixos-23_05";
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixos-23_11";
};
};

Expand Down
34 changes: 15 additions & 19 deletions tests/nixcfg/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/nixcfg/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
description = "Nix configuration";

inputs = {
nixpkgs.follows = "nixos-23_05";
nixos-23_05.url = "github:NixOS/nixpkgs/fd901ef4bf93499374c5af385b2943f5801c0833";
nixos-unstable.url = "github:NixOS/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e";
nixpkgs.follows = "nixos-23_11";
nixos-23_11.url = "github:NixOS/nixpkgs/fb0c047e30b69696acc42e669d02452ca1b55755";
nixos-unstable.url = "github:NixOS/nixpkgs/fb0c047e30b69696acc42e669d02452ca1b55755";

extra-container = {
url = "github:erikarvstedt/extra-container";
inputs.nixpkgs.follows = "nixpkgs";
};

home-manager = {
url = "github:nix-community/home-manager/release-23.05";
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "extra-container/flake-utils";
};
Expand Down

0 comments on commit 68c5e90

Please sign in to comment.