home-manager: added standalone config

This commit is contained in:
Aly Raffauf 2024-03-30 18:04:10 -04:00
parent 76b177a2f0
commit 151fbaad72
6 changed files with 20 additions and 11 deletions

View file

@ -20,9 +20,6 @@
inputs.nixpkgs.follows = "nixpkgs-unstable"; inputs.nixpkgs.follows = "nixpkgs-unstable";
}; };
# # Declarative Flatpaks.
# nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.3.0";
# Pre-baked hardware support for various devices. # Pre-baked hardware support for various devices.
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
}; };
@ -37,10 +34,10 @@
outputs = outputs =
inputs@{ nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: { inputs@{ nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: {
homeConfigurations."aly" = homeConfigurations.aly =
home-manager-unstable.lib.homeManagerConfiguration { home-manager-unstable.lib.homeManagerConfiguration {
pkgs = import nixpkgs-unstable { system = "x86_64-linux"; }; pkgs = import nixpkgs-unstable { system = "x86_64-linux"; };
modules = [ ./homeManagerModules ]; modules = [ ./home.nix ];
}; };
nixosConfigurations = { nixosConfigurations = {

10
home.nix Normal file
View file

@ -0,0 +1,10 @@
{ inputs, config, pkgs, lib, ... }:
{
imports = [ ./homeManagerModules ];
home.username = "aly";
home.homeDirectory = "/home/aly";
home.stateVersion = "23.11";
programs.home-manager.enable = true;
}

View file

@ -2,4 +2,12 @@
{ {
imports = [ ./cliApps ./guiApps ./desktopEnv ./userServices ]; imports = [ ./cliApps ./guiApps ./desktopEnv ./userServices ];
nixpkgs = {
# Configure nixpkgs instance
config = {
# Enableunfree packages
allowUnfree = true;
};
};
} }

View file

@ -8,7 +8,5 @@
home.stateVersion = "23.11"; home.stateVersion = "23.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
desktopEnv.hyprland.enable = true;
}; };
} }

View file

@ -8,7 +8,5 @@
home.stateVersion = "23.11"; home.stateVersion = "23.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
desktopEnv.hyprland.enable = true;
}; };
} }

View file

@ -8,7 +8,5 @@
home.stateVersion = "23.11"; home.stateVersion = "23.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
desktopEnv.hyprland.enable = true;
}; };
} }