-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an example flake and added mention of the flake in README
- Loading branch information
1 parent
67429cc
commit eb72aae
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
description = "An example flake for Nanonote"; | ||
|
||
# This example flake does probably not work. But it should make it clear how to add Nanonote | ||
# to your system flake, to be able to install Nanonote on your nix system. | ||
|
||
inputs = { | ||
|
||
# General nixos inputs: | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; | ||
|
||
# Home-mamanger inputs | ||
home-manager.url = "github:nix-community/home-manager/release-24.05"; | ||
home-manager.inputs.nixpkgs.follows = "nixpkgs"; | ||
|
||
# Adding the nanonote flake input | ||
nanonote.url = "github:Morgenkaff/nanonote/add-flake?dir=nix"; | ||
|
||
}; | ||
|
||
outputs = { self, nixpkgs, home-manager, nanonote, ... }@inputs: | ||
|
||
let | ||
|
||
system = "x86_64-linux"; | ||
|
||
in { | ||
nixosConfigurations = { | ||
hostname = nixpkgs.lib.nixosSystem { | ||
inherit system; | ||
specialArgs = { inherit inputs; }; | ||
modules = [ | ||
|
||
# Create an overlay to install Nanonote as was it part of nixpkgs | ||
({ nixpkgs.overlays = [ nanonote.overlays.default ]; }) | ||
# And then install it under "environment.systemPackages" in your nix configuration | ||
|
||
|
||
# Nix cinfiguration | ||
./configuration.nix | ||
|
||
# Home-manager config: | ||
home-manager.nixosModules.home-manager | ||
{ | ||
|
||
# Alternatively create n overlay for use in Home-manager | ||
nixpkgs.overlays = [ nanonote.overlays.default ]; | ||
# And then install it under "home.packages" in you Home-manager configuration | ||
|
||
home-manager.useGlobalPkgs = true; | ||
home-manager.useUserPackages = true; | ||
home-manager.users.user = import ./home-manager.nix; | ||
|
||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
|