updated module example

This commit is contained in:
John Lancaster
2025-07-06 19:37:15 -05:00
parent f4e8b4083f
commit ddf5bcaeee

View File

@@ -40,40 +40,50 @@ nhmu
```nix ```nix
{ {
description = "Home Manager configuration of john"; description = "John's system flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = { jsl-home = {
url = "github:nix-community/home-manager"; url = "git+https://gitea.john-stream.com/john/jsl-home?ref=dev";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
john-home-config = {
url = "path:/home/john/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
}; };
outputs = outputs = { self, nixpkgs, ... }@inputs:
{ nixpkgs, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; nixosSystem = nixpkgs.lib.nixosSystem;
homeManagerConfiguration = inputs.home-manager.lib.homeManagerConfiguration; hostName = "john-p14s";
jslDefault = inputs.john-home-config.homeManagerModules.default;
userName = "john";
in in
{ {
homeConfigurations."${userName}" = homeManagerConfiguration { nixosConfigurations.${hostName} = nixosSystem {
inherit pkgs; specialArgs =
{
inherit inputs;
inherit system;
};
modules = [ modules = [
jslDefault { ./hardware-configuration.nix
user = "${userName}"; ./configuration.nix
# Add any additional configuration here inputs.jsl-home.nixosModules.default
{
stateVersion = "24.05";
user = "john";
root = true;
ssh = true;
profile = "personal";
enableShell = true;
_1password = true;
docker = true;
graphical = true;
steam = true;
extraImports = [
./home-manager/john.nix
./home-manager/gnome.nix
./home-manager/ssh.nix
];
} }
./home.nix
# Add other home manager modules here
]; ];
}; };
}; };