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: outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
let nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [ modules = [
./hosts/default/configuration.nix ./nixos/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
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.default
]; ];
# Bootloader. # Bootloader.
@ -274,15 +273,6 @@
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;