project: init with skeleton template

This commit is contained in:
Gabriel Arazas 2023-05-25 11:18:18 +08:00
commit 98dacefb11
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 32 additions and 0 deletions

22
flake.nix Normal file
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";
}