Skip to content

Commit

Permalink
refactor #(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mobsenpai committed Apr 15, 2024
1 parent d9e5dab commit 9dfba4d
Show file tree
Hide file tree
Showing 82 changed files with 1,974 additions and 1,759 deletions.
83 changes: 39 additions & 44 deletions flake.lock
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 26 additions & 6 deletions flake.nix
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,39 @@
╚═╝░░░░░╚═╝░╚════╝░╚═════╝░░░░╚═════╝░  ╚═╝░░╚══╝╚═╝╚═╝░░╚═╝░╚════╝░╚═════╝░
'';

outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} {imports = [./flake];};

inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager.url = "github:nix-community/home-manager/release-23.11";
# Wait till gets merged into stable release
hypridle.url = "github:hyprwm/hypridle";
hyprlock.url = "github:hyprwm/hyprlock";
# --
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nur.url = "github:nix-community/NUR";

flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = {...} @ inputs: {
homeManagerModules.default = ./modules/home-manager;
nixosModules.default = ./modules/nixos;

nixosConfigurations = {
hana = inputs.nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/hana/configuration.nix
inputs.self.outputs.nixosModules.default
inputs.home-manager.nixosModules.home-manager

{
home-manager = {
extraSpecialArgs = {inherit inputs;};
users.yashraj.imports = [
./home/hana.nix
inputs.self.outputs.homeManagerModules.default
];
};
}
];
};
};
};
}
30 changes: 0 additions & 30 deletions flake/default.nix

This file was deleted.

18 changes: 15 additions & 3 deletions lib/themes/default.nix → home/hana.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
lib: {
colorscheme = rec {
{
lib,
pkgs,
...
}: {
# Home modules
# ===================================================================
myhome = {
desktop.enable = true;

hyprland.enable = true;
};

myhome.colorscheme = rec {
colors = {
black = "282828";
red = "cc241d";
Expand Down Expand Up @@ -27,7 +39,7 @@ lib: {
xcolors = lib.mapAttrsRecursive (_: color: "#${color}") colors;
};

wallpaper = let
myhome.wallpaper = let
url = "https://i.imgur.com/mcW1tIA.png";
sha256 = "1zk3hsgqi4sgwshb6r7dj64apsky76xwspnvclbkr658lkadwd7g";
in
Expand Down
29 changes: 0 additions & 29 deletions home/yashraj/default.nix

This file was deleted.

50 changes: 0 additions & 50 deletions home/yashraj/hiru.nix

This file was deleted.

15 changes: 0 additions & 15 deletions home/yashraj/home.nix

This file was deleted.

Loading

0 comments on commit 9dfba4d

Please sign in to comment.