Skip to content

Commit

Permalink
re-structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MobSenpai committed Nov 29, 2023
1 parent 5d363cc commit 47ab320
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 43 deletions.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
# Main desktop
acer = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# Our main nixos configuration file
modules = [./hosts/acer];
};

# Work laptop
hp = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# Our main nixos configuration file
modules = [./hosts/hp];
};
};
Expand Down
3 changes: 0 additions & 3 deletions home/yashraj/hp.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{inputs, ...}: {
imports = [
# Global
./shared

# Optionals
./shared/optional/desktop/hyprland

./shared/optional/programs/wezterm.nix
./shared/optional/programs/helix.nix
./shared/optional/programs/vivaldi.nix
Expand Down
13 changes: 0 additions & 13 deletions home/yashraj/shared/colorschemes/default.nix

This file was deleted.

11 changes: 7 additions & 4 deletions home/yashraj/shared/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
config,
pkgs,
...
}: {
}: let
inherit (inputs.nix-colors) colorSchemes;
in {
imports = [
./colorschemes
./pkgs
./services
inputs.nix-colors.homeManagerModule
./shell
];

Expand Down Expand Up @@ -42,4 +42,7 @@
homeDirectory = "/home/${config.home.username}";
stateVersion = "23.05";
};

# Use the colorscheme available at https://github.com/tinted-theming/base16-schemes
colorscheme = colorSchemes.gruvbox-dark-medium;
}
1 change: 0 additions & 1 deletion home/yashraj/shared/optional/desktop/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ in {
package = pkgs.yaru-theme;
size = 24;
gtk.enable = true;
x11.enable = true;
};

gtk = {
Expand Down
1 change: 1 addition & 0 deletions home/yashraj/shared/optional/desktop/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
inherit
(pkgs)
waybar
pcmanfm
;
};
}
13 changes: 0 additions & 13 deletions home/yashraj/shared/pkgs/default.nix

This file was deleted.

3 changes: 0 additions & 3 deletions home/yashraj/shared/services/default.nix

This file was deleted.

1 change: 1 addition & 0 deletions home/yashraj/shared/shell/cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
bottom
catimg
curl
cmatrix
file
jq
killall
Expand Down
8 changes: 3 additions & 5 deletions hosts/hp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
...
}: {
imports = [
# Shared configuration across all machines
./hardware-configuration.nix

../shared
../shared/users/yashraj.nix

# Specific configuration
./hardware-configuration.nix
../shared/optional/hyprland.nix
];

boot = {
Expand All @@ -25,8 +25,6 @@
useDHCP = false;
};

programs.hyprland.enable = true;

# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}
3 changes: 3 additions & 0 deletions hosts/shared/optional/hyprland.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{pkgs, ...}: {
programs.hyprland.enable = true;
}

0 comments on commit 47ab320

Please sign in to comment.