reformat
This commit is contained in:
14
flake.nix
14
flake.nix
@ -32,10 +32,7 @@
|
|||||||
let
|
let
|
||||||
# We bring these functions into the scope for the outputs.
|
# We bring these functions into the scope for the outputs.
|
||||||
inherit (builtins) attrValues; # TODO: What does this do
|
inherit (builtins) attrValues; # TODO: What does this do
|
||||||
# inherit (nixpkgs.lib) nixosSystem;
|
|
||||||
# inherit (home-manager.lib) homeManagerConfiguration;
|
|
||||||
|
|
||||||
# Disabled since HomeManager module inherits these in extraSpecialArgs
|
|
||||||
# Add overlays from other flakes so we can use them from pkgs.
|
# Add overlays from other flakes so we can use them from pkgs.
|
||||||
overlays = {
|
overlays = {
|
||||||
nur = inputs.nur.overlay;
|
nur = inputs.nur.overlay;
|
||||||
@ -111,6 +108,7 @@
|
|||||||
# System configurations + HomeManager module
|
# System configurations + HomeManager module
|
||||||
# Accessible via 'nixos-rebuild'
|
# Accessible via 'nixos-rebuild'
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
# We give our configuration a name (the hostname) to choose a configuration when rebuilding.
|
# We give our configuration a name (the hostname) to choose a configuration when rebuilding.
|
||||||
# This makes it easy to add different configurations later (e.g. for a laptop).
|
# This makes it easy to add different configurations later (e.g. for a laptop).
|
||||||
# Usage: sudo nixos-rebuild switch --flake .#nixinator
|
# Usage: sudo nixos-rebuild switch --flake .#nixinator
|
||||||
@ -140,9 +138,7 @@
|
|||||||
home-manager.users.christoph = import ./home/home.nix;
|
home-manager.users.christoph = import ./home/home.nix;
|
||||||
|
|
||||||
# Make our overlays available in home.nix
|
# Make our overlays available in home.nix
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -169,10 +165,8 @@
|
|||||||
# HomeManager
|
# HomeManager
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs =
|
home-manager.useGlobalPkgs = true; # Use systems pkgs, disables nixpkgs.* options in home.nix
|
||||||
true; # Use systems pkgs, disables nixpkgs.* options in home.nix
|
home-manager.useUserPackages = true; # Enable installing packages through users.christoph.packages
|
||||||
home-manager.useUserPackages =
|
|
||||||
true; # Enable installing packages through users.christoph.packages
|
|
||||||
home-manager.users.christoph = import ./home/home.nix;
|
home-manager.users.christoph = import ./home/home.nix;
|
||||||
|
|
||||||
# Make our overlays available in home.nix
|
# Make our overlays available in home.nix
|
||||||
|
Reference in New Issue
Block a user