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 = {
system = "x86_64-linux"; default = nixpkgs.lib.nixosSystem {
pkgs = nixpkgs.legacyPackages.${system}; system = "x86_64-linux";
in modules = [
{ ./nixos/configuration.nix
nixosConfigurations.default = nixpkgs.lib.nixosSystem { home-manager.nixosModules.home-manager
specialArgs = {inherit inputs;}; {
modules = [ home-manager.useGlobalPkgs = true;
./hosts/default/configuration.nix home-manager.useUserPackages = true;
inputs.home-manager.nixosModules.default 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;