feat: rework to modular
This commit is contained in:
36
templates/user-flake/flake.nix
Normal file
36
templates/user-flake/flake.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
description = "Starter personal flake for NodeiWest employees";
|
||||
|
||||
inputs = {
|
||||
# Adjust the repo path if you publish this under a different name.
|
||||
company.url = "git+ssh://git@git.dgren.dev/employees/company-nix.git";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ company, ... }:
|
||||
let
|
||||
username = "your-name";
|
||||
in
|
||||
{
|
||||
# Remove whichever target you do not need.
|
||||
homeConfigurations."${username}@linux" = company.lib.mkSystem {
|
||||
target = "linux";
|
||||
system = "x86_64-linux";
|
||||
inherit username;
|
||||
homeDirectory = "/home/${username}";
|
||||
modules = [
|
||||
company.homeManagerModules.profiles.backend
|
||||
];
|
||||
};
|
||||
|
||||
darwinConfigurations."${username}-mac" = company.lib.mkSystem {
|
||||
target = "darwin";
|
||||
system = "aarch64-darwin";
|
||||
inherit username;
|
||||
homeDirectory = "/Users/${username}";
|
||||
modules = [
|
||||
company.homeManagerModules.profiles.frontend
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user