mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Add home-manager
This commit is contained in:
parent
9952ba2a34
commit
b3ea47d9b2
1 changed files with 18 additions and 8 deletions
26
flake.nix
26
flake.nix
|
@ -3,25 +3,35 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
||||
disko = {
|
||||
url = github:nix-community/disko;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
disko = {
|
||||
url = github:nix-community/disko;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = github:nix-community/home-manager;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, disko, ... }@inputs: {
|
||||
outputs = { self, nixpkgs, disko, home-manager, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
"nixos" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# Import the configuration.nix we used before, so that the old configuration file can still take effect.
|
||||
# Note: /etc/nixos/configuration.nix itself is also a Nix Module, so you can import it directly here
|
||||
# ./configuration.nix
|
||||
# Add Disko for disk management
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
{
|
||||
_module.args.disks = [ "/dev/vda" ];
|
||||
}
|
||||
# Add Home-manager
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.users.aaronh = import ./home.nix;
|
||||
}
|
||||
./hardware-configuration.nix
|
||||
|
||||
({config, pkgs, ...}: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue