From 151fbaad7223844c440f211fbea3e4d8576ed553 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 30 Mar 2024 18:04:10 -0400 Subject: [PATCH] home-manager: added standalone config --- flake.nix | 7 ++----- home.nix | 10 ++++++++++ homeManagerModules/default.nix | 8 ++++++++ hosts/lavaridge/home.nix | 2 -- hosts/mauville/home.nix | 2 -- hosts/rustboro/home.nix | 2 -- 6 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 home.nix diff --git a/flake.nix b/flake.nix index 11990d14..58608125 100644 --- a/flake.nix +++ b/flake.nix @@ -20,9 +20,6 @@ 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. nixos-hardware.url = "github:NixOS/nixos-hardware/master"; }; @@ -37,10 +34,10 @@ outputs = inputs@{ nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: { - homeConfigurations."aly" = + homeConfigurations.aly = home-manager-unstable.lib.homeManagerConfiguration { pkgs = import nixpkgs-unstable { system = "x86_64-linux"; }; - modules = [ ./homeManagerModules ]; + modules = [ ./home.nix ]; }; nixosConfigurations = { diff --git a/home.nix b/home.nix new file mode 100644 index 00000000..ba1cb691 --- /dev/null +++ b/home.nix @@ -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; +} diff --git a/homeManagerModules/default.nix b/homeManagerModules/default.nix index 3311e04c..084eda07 100644 --- a/homeManagerModules/default.nix +++ b/homeManagerModules/default.nix @@ -2,4 +2,12 @@ { imports = [ ./cliApps ./guiApps ./desktopEnv ./userServices ]; + + nixpkgs = { + # Configure nixpkgs instance + config = { + # Enableunfree packages + allowUnfree = true; + }; + }; } diff --git a/hosts/lavaridge/home.nix b/hosts/lavaridge/home.nix index 09b1fe78..29937bb7 100644 --- a/hosts/lavaridge/home.nix +++ b/hosts/lavaridge/home.nix @@ -8,7 +8,5 @@ home.stateVersion = "23.11"; programs.home-manager.enable = true; - - desktopEnv.hyprland.enable = true; }; } diff --git a/hosts/mauville/home.nix b/hosts/mauville/home.nix index 09b1fe78..29937bb7 100644 --- a/hosts/mauville/home.nix +++ b/hosts/mauville/home.nix @@ -8,7 +8,5 @@ home.stateVersion = "23.11"; programs.home-manager.enable = true; - - desktopEnv.hyprland.enable = true; }; } diff --git a/hosts/rustboro/home.nix b/hosts/rustboro/home.nix index 09b1fe78..29937bb7 100644 --- a/hosts/rustboro/home.nix +++ b/hosts/rustboro/home.nix @@ -8,7 +8,5 @@ home.stateVersion = "23.11"; programs.home-manager.enable = true; - - desktopEnv.hyprland.enable = true; }; }