Skip to content

Commit

Permalink
Reorganize the flake a bit and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Oct 14, 2024
1 parent bc057b5 commit 3bba2a1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 56 deletions.
1 change: 1 addition & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ To clean up such systems, you can use the following commands:
## Credits

- [use-the-fork](https://github.com/use-the-fork) helped me to [move](https://www.reddit.com/r/NixOS/comments/1eely7a/access_homemanager_config_from_my_nixos_config/) from a standalone config for home-manager to using it as a module
- [u/paulgdp](https://www.reddit.com/user/paulgdp/) gave [advice](https://www.reddit.com/r/NixOS/comments/19c5een/comment/kiwxy8b/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button) on how `nixosConfig` is an attribute of `args` if the config is used in NixOS, used in `modules/home-manager/imports.nix`
26 changes: 9 additions & 17 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
nixos-modules = [
nixpkgs-config
nur.nixosModules.nur
stylix-config
# stylix-config
{
theming = {
inherit scheme;
Expand All @@ -144,21 +144,21 @@
# neorg-overlay.overlays.default
# ];
# }
nur.hmModules.nur
# nixvim.homeManagerModules.nixvim
inputs.stylix.homeManagerModules.stylix
stylix-config
# {
# stylix.image = nixpkgs.lib.mkDefault ./home-manager/desktop/default-wallpaper.png;
# #stylix.targets.nixvim.enable = nixpkgs.lib.mkDefault false;
# }
nur.hmModules.nur
./modules/home-manager/home.nix
inputs.stylix.homeManagerModules.stylix
{
theming = {
inherit scheme;
inherit image;
};
}
# stylix-config
# {
# stylix.image = nixpkgs.lib.mkDefault ./home-manager/desktop/default-wallpaper.png;
# #stylix.targets.nixvim.enable = nixpkgs.lib.mkDefault false;
# }
];
in {
nixosConfigurations = {
Expand Down Expand Up @@ -223,8 +223,6 @@
./hosts/kyuubi
home-manager.nixosModules.home-manager
./homes
# ./nixos/hosts/kyuubi/configuration.nix
# home-manager.nixosModules.home-manager
];
};

Expand Down Expand Up @@ -300,13 +298,7 @@

mar = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules =
home-manager-modules;
# ++ [
# {
# pc.enable = false;
# }
# ];
modules = home-manager-modules;
extraSpecialArgs = {
inherit inputs;
user = "mar";
Expand Down
20 changes: 1 addition & 19 deletions modules/home-manager/home.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
{
# lib,
user,
...
}: {
{user, ...}: {
imports = [
./hosts
# ./pc
# ./theming
./environment.nix
./imports.nix
./module.nix
];

# pc.enable =
# lib.mkDefault
# (
# if (args ? nixosConfig)
# then osConfig.gui.enable
# else false
# );
# theming.enable =
# if (args ? nixosConfig)
# then lib.mkDefault osConfig.gui.enable
# else false;
environment.enable = true;

# Allow unfree software
Expand Down
20 changes: 0 additions & 20 deletions modules/home-manager/module.nix

This file was deleted.

0 comments on commit 3bba2a1

Please sign in to comment.