This commit is contained in:
Hadi 2024-06-14 14:20:06 +02:00
parent cf99fa5687
commit ea15e4fa98
4 changed files with 33 additions and 35 deletions

View File

@ -1,6 +1,9 @@
{
description =
"My NixOs dotfiles - Home-manager, hyprland, nixvim, sops, kitty, wofi, waybar, lf, dunst, qutebrowser, tmux, ...";
# https://github.com/anotherhadi/nixy
description = ''
Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place.
It's a simple way to manage your system configuration and dotfiles.
'';
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@ -23,33 +26,28 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = inputs@{ nixpkgs, home-manager, sops-nix, hyprland, spicetify-nix
, nur, nixos-hardware, ... }: {
outputs = inputs@{ nixpkgs, nur, ... }: {
nixosConfigurations = {
nixy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = [ nur.overlay ]; }
./hosts/laptop/configuration.nix
nixos-hardware.nixosModules.omen-16-n0005ne
{ _module.args = { inherit inputs; }; }
home-manager.nixosModules.home-manager
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
inputs.home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [ nur.overlay ];
_module.args = { inherit inputs; };
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users."hadi" = import ./home/laptop.nix; # CHANGE ME
extraSpecialArgs = {
inherit inputs;
inherit spicetify-nix;
inherit sops-nix;
inherit hyprland;
};
extraSpecialArgs = { inherit inputs; };
};
}
];
};
};
};
}

View File

@ -1,8 +1,8 @@
{ pkgs, config, lib, spicetify-nix, ... }:
let spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
{ pkgs, config, lib, inputs, ... }:
let spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
in {
imports = [ spicetify-nix.homeManagerModules.default ];
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "spotify" ];
programs.spicetify = {

View File

@ -1,4 +1,4 @@
{ pkgs, config, hyprland, ... }: {
{ pkgs, config, inputs, ... }: {
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ];
@ -26,7 +26,7 @@
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
package = hyprland.packages."${pkgs.system}".hyprland;
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
settings = {
"$mod" = "SUPER";

View File

@ -1,5 +1,5 @@
{ pkgs, sops-nix, ... }: {
imports = [ sops-nix.homeManagerModules.sops ];
{ pkgs, inputs, ... }: {
imports = [ inputs.sops-nix.homeManagerModules.sops ];
home.packages = with pkgs; [ sops age ];