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

View File

@ -1,10 +1,11 @@
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
{ {
# Imports # Imports
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.default
]; ];
# Bootloader. # Bootloader.
@ -273,6 +274,15 @@
shell = pkgs.zsh; 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 # Allow appimages to run manually
boot.binfmt.registrations.appimage = { boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false; wrapInterpreterInShell = false;