Skip to content

Commit

Permalink
Move nix-on-droid stateVersion into host-specific definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Oct 15, 2023
1 parent bea32b8 commit db77236
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions hosts/nix-on-droid/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ config, pkgs, ... }:

{
system.stateVersion = import ./state-version.nix;
}
2 changes: 1 addition & 1 deletion hosts/nix-on-droid/home-nix-on-droid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
mobile.enable = true;
};

home.stateVersion = "23.05";
home.stateVersion = import ./state-version.nix;
}
1 change: 1 addition & 0 deletions hosts/nix-on-droid/state-version.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"23.05"
5 changes: 4 additions & 1 deletion lib/builders/mkNixOnDroid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ in

inputs.nix-on-droid.lib.nixOnDroidConfiguration {
modules = [
"${inputs.self}/hosts/${name}"

{
_file = ./mkNixOnDroid.nix;

Expand All @@ -24,7 +26,8 @@ inputs.nix-on-droid.lib.nixOnDroidConfiguration {
config.lib.custom = customLib;
}
]
++ customLib.getRecursiveDefaultNixFileList ../../nix-on-droid;
++ customLib.getRecursiveDefaultNixFileList ../../nix-on-droid
++ customLib.getRecursiveDefaultNixFileList "${inputs.self}/nix-on-droid";

extraSpecialArgs = {
inherit inputs pkgs homeModules;
Expand Down
3 changes: 0 additions & 3 deletions nix-on-droid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

nix.package = pkgs.nix;

# FIXME: update when released
system.stateVersion = "22.11";

terminal.font =
let
fontPackage = pkgs.nerdfonts.override {
Expand Down

0 comments on commit db77236

Please sign in to comment.