added readme and comments for part 1
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{
|
||||
# Import self and universal inputs (different to inputs')
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# Define nixosConfiguration with hostname "host"
|
||||
flake.nixosConfigurations.host = inputs.nixpkgs.lib.nixosSystem {
|
||||
# Define modules to import
|
||||
modules = with self.nixosModules; [
|
||||
hostConfiguration
|
||||
system
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{...}: {
|
||||
# Define flake part nixosModule "hostConfiguration" and pass in arch specific pkgs
|
||||
flake.nixosModules.hostConfiguration = {pkgs, ...}: {
|
||||
# Normal nix code within module, add git to systemPackages
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
];
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
{
|
||||
# Import self and universal inputs (different to inputs')
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# Define nixosConfiguration with hostname "newHost"
|
||||
flake.nixosConfigurations.newHost = inputs.nixpkgs.lib.nixosSystem {
|
||||
# Define modules to import
|
||||
modules = with self.nixosModules; [
|
||||
newHostConfiguration
|
||||
newHostConfiguration
|
||||
system
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{...}: {
|
||||
# Define flake part nixosModule "newHostConfiguration" and pass in arch specific pkgs
|
||||
flake.nixosModules.newHostConfiguration = {pkgs, ...}: {
|
||||
# Normal nix code within module, add git to systemPackages
|
||||
environment.systemPackages = with pkgs; [
|
||||
fastfetch
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user