templates/sample-nixos-template: init

This commit is contained in:
Gabriel Arazas 2023-05-24 18:54:07 +08:00
parent 0759ba4ef7
commit d9d63dd90a
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
4 changed files with 36 additions and 0 deletions

View File

@ -422,6 +422,10 @@
path = ./templates/basic-overlay-flake; path = ./templates/basic-overlay-flake;
description = "Basic overlay as a flake"; description = "Basic overlay as a flake";
}; };
sample-nixos-template = {
path = ./templates/sample-nixos-template;
description = "Simple sample Nix flake with NixOS and home-manager";
};
}; };
# No amount of formatters will make this codebase nicer but it sure does # No amount of formatters will make this codebase nicer but it sure does

View File

@ -0,0 +1,22 @@
{
description = "Very simple sample of a Nix flake with NixOS and home-manager";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
};
outputs = { nixpkgs, home-manager, ... }: let
system = "x85_64-linux";
in {
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./hosts/desktop ];
};
homeConfigurations.foodogsquared = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [ ./users/foodogsquared ];
};
};
}

View File

@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }:
{
system.stateVersion = "23.05";
}

View File

@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }:
{
home.stateVersion = "23.05";
}