After struggling for a long time I still couldn't figure out where to add the imports to import the module walker.homeManagerModules.walker. I don't know how to avoid the error "the option home does not exist".
My flake:
{
description = "A simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
aagl.url = "github:ezKEa/aagl-gtk-on-nix";
aagl.inputs.nixpkgs.follows = "nixpkgs";
walker.url = "github:abenz1267/walker";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.3.0";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
# url = "github:nix-community/home-manager/master";
# # The `follows` keyword in inputs is used for inheritance.
# # Here, `inputs.nixpkgs` of home-manager is kept consistent with
# # the `inputs.nixpkgs` of the current flake,
# # to avoid problems caused by different versions of nixpkgs.
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixos-hardware, aagl, fenix, lanzaboote, home-manager, walker, ... }@inputs: {
packages.x86_64-linux.default = fenix.packages.x86_64-linux.minimal.toolchain;
nixosConfigurations.MKZFRMW = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
imports = [ aagl.nixosModules.default ];
nix.settings = aagl.nixConfig; # Set up Cachix
programs.anime-game-launcher.enable = true; # Adds launcher and /etc/hosts rules
programs.honkers-railway-launcher.enable = true;
}
./configuration.nix
./flatpak-fix.nix
nixos-hardware.nixosModules.framework-13-7040-amd
lanzaboote.nixosModules.lanzaboote
({ pkgs, lib, ... }: {
environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.
pkgs.sbctl
];
# Lanzaboote currently replaces the systemd-boot module.
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
# for now.
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
})
({ pkgs, ... }: {
nixpkgs.overlays = [ fenix.overlays.default ];
environment.systemPackages = with pkgs; [
(fenix.packages.${system}.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
];
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.karm2 = import ./home.nix;
}
];
};
};
}
My nixos flake use home manager as a module. Config:
After struggling for a long time I still couldn't figure out where to add the
imports
to import the modulewalker.homeManagerModules.walker
. I don't know how to avoid the error "the option home does not exist". My flake: