Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddf5bcaeee |
68
README.md
68
README.md
@@ -40,42 +40,52 @@ nhmu
|
||||
|
||||
```nix
|
||||
{
|
||||
description = "Home Manager configuration of john";
|
||||
description = "John's system flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
jsl-home = {
|
||||
url = "git+https://gitea.john-stream.com/john/jsl-home?ref=dev";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
john-home-config = {
|
||||
url = "path:/home/john/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
homeManagerConfiguration = inputs.home-manager.lib.homeManagerConfiguration;
|
||||
jslDefault = inputs.john-home-config.homeManagerModules.default;
|
||||
userName = "john";
|
||||
in
|
||||
{
|
||||
homeConfigurations."${userName}" = homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
jslDefault {
|
||||
user = "${userName}";
|
||||
# Add any additional configuration here
|
||||
}
|
||||
./home.nix
|
||||
# Add other home manager modules here
|
||||
];
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
nixosSystem = nixpkgs.lib.nixosSystem;
|
||||
hostName = "john-p14s";
|
||||
in
|
||||
{
|
||||
nixosConfigurations.${hostName} = nixosSystem {
|
||||
specialArgs =
|
||||
{
|
||||
inherit inputs;
|
||||
inherit system;
|
||||
};
|
||||
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
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user