Compare commits

..

No commits in common. "d63b34e2cd839a141bb208128ed4c0456e36d507" and "6b4390672b45249dc06dae0d51356434c36bb9bc" have entirely different histories.

4 changed files with 25 additions and 21 deletions

View File

@ -15,25 +15,19 @@
};
};
outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
modules = [
./nixos/configuration.nix
home-manager.nixosModules.home-manager
pkgs = nixpkgs.legacyPackages.${system};
in
{
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = {inherit inputs;};
home-manager.users.crony = {
imports = [
./home-manager/home.nix
];
};
}
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/default/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
};
}

View File

@ -1,10 +1,11 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
# Imports
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
# Bootloader.
@ -273,6 +274,15 @@
shell = pkgs.zsh;
};
# Enable home manager for my user
home-manager = {
useGlobalPkgs = true;
extraSpecialArgs = {inherit inputs;};
users = {
"crony" = import ./home.nix;
};
};
# Allow appimages to run manually
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;