mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
templates/sample-nixos-template: init
This commit is contained in:
parent
0759ba4ef7
commit
d9d63dd90a
@ -422,6 +422,10 @@
|
||||
path = ./templates/basic-overlay-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
|
||||
|
22
templates/sample-nixos-template/flake.nix
Normal file
22
templates/sample-nixos-template/flake.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
system.stateVersion = "23.05";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.stateVersion = "23.05";
|
||||
}
|
Loading…
Reference in New Issue
Block a user