mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
project: init with skeleton template
This commit is contained in:
commit
98dacefb11
22
flake.nix
Normal file
22
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 ];
|
||||
};
|
||||
};
|
||||
}
|
5
hosts/desktop/default.nix
Normal file
5
hosts/desktop/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
system.stateVersion = "23.05";
|
||||
}
|
5
users/foodogsquared/default.nix
Normal file
5
users/foodogsquared/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.stateVersion = "23.05";
|
||||
}
|
Loading…
Reference in New Issue
Block a user