Testing new config.

This commit is contained in:
CronyAkatsuki 2024-02-14 20:33:50 +01:00
parent 6b4390672b
commit 1762d53397
4 changed files with 22 additions and 25 deletions

View File

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

View File

@ -1,11 +1,10 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, ... }:
{
# Imports
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
# Bootloader.
@ -274,15 +273,6 @@
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;