set stateVersion in toplevel
This commit is contained in:
parent
c3887fdf8b
commit
a29de4f7ca
@ -1,6 +1,7 @@
|
||||
top@{ inputs, ... }: {
|
||||
imports = [ ./nixos ./home ];
|
||||
systems = [ "x86_64-linux" ];
|
||||
flake.stateVersion = "24.05";
|
||||
perSystem = perSystem@{ system, ... }: {
|
||||
config._module.args = {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
|
@ -1,15 +1,15 @@
|
||||
toplevel@{ inputs, withSystem, ... }:
|
||||
toplevel@{ inputs, withSystem, config, ... }:
|
||||
{
|
||||
flake.homeConfigurations.ivand = withSystem "x86_64-linux" (ctx@{ pkgs, ... }:
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules =
|
||||
let
|
||||
mods = toplevel.config.flake.homeManagerModules;
|
||||
mods = config.flake.homeManagerModules;
|
||||
in
|
||||
[
|
||||
{
|
||||
home.stateVersion = "24.05";
|
||||
home.stateVersion = config.flake.stateVersion;
|
||||
}
|
||||
inputs.nid.hmModules.nix-index
|
||||
inputs.catppuccin.homeManagerModules.catppuccin
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ moduleWithSystem, ... }: {
|
||||
top@{ moduleWithSystem, ... }: {
|
||||
flake.nixosModules = {
|
||||
grub = {
|
||||
boot = {
|
||||
@ -16,7 +16,7 @@
|
||||
};
|
||||
};
|
||||
base = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: {
|
||||
system.stateVersion = "24.05";
|
||||
system.stateVersion = top.config.flake.stateVersion;
|
||||
nix = {
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
|
Loading…
Reference in New Issue
Block a user