1 Commits

Author SHA1 Message Date
John Lancaster
ddf5bcaeee updated module example 2025-07-06 19:37:15 -05:00

View File

@@ -40,42 +40,52 @@ 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"; nixosSystem = nixpkgs.lib.nixosSystem;
pkgs = nixpkgs.legacyPackages.${system}; hostName = "john-p14s";
homeManagerConfiguration = inputs.home-manager.lib.homeManagerConfiguration; in
jslDefault = inputs.john-home-config.homeManagerModules.default; {
userName = "john"; nixosConfigurations.${hostName} = nixosSystem {
in specialArgs =
{ {
homeConfigurations."${userName}" = homeManagerConfiguration { inherit inputs;
inherit pkgs; inherit system;
modules = [
jslDefault {
user = "${userName}";
# Add any additional configuration here
}
./home.nix
# Add other home manager modules here
];
}; };
modules = [
./hardware-configuration.nix
./configuration.nix
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
];
}
];
}; };
};
} }
``` ```