mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
finish up flake
This commit is contained in:
parent
e5d3c61a98
commit
47ae5b8f89
1 changed files with 6 additions and 5 deletions
11
flake.nix
11
flake.nix
|
|
@ -1,5 +1,7 @@
|
|||
# Adapted from https://github.com/Misterio77/nix-starter-configs
|
||||
|
||||
{
|
||||
description = "Your new nix config";
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
# Nixpkgs
|
||||
|
|
@ -21,8 +23,7 @@
|
|||
# NixOS configuration entrypoint
|
||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||
nixosConfigurations = {
|
||||
# FIXME replace with your hostname
|
||||
your-hostname = nixpkgs.lib.nixosSystem {
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
||||
# > Our main nixos configuration file <
|
||||
modules = [ ./nixos/configuration.nix ];
|
||||
|
|
@ -30,10 +31,10 @@
|
|||
};
|
||||
|
||||
# Standalone home-manager configuration entrypoint
|
||||
# Available through 'home-manager --flake .#your-username@your-hostname'
|
||||
# Available through 'home-manager --flake .#nils@nixos'
|
||||
homeConfigurations = {
|
||||
# FIXME replace with your username@hostname
|
||||
"your-username@your-hostname" = home-manager.lib.homeManagerConfiguration {
|
||||
"nils@nixos" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
extraSpecialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
||||
# > Our main home-manager configuration file <
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue