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 = # https://github.com/anotherhadi/nixy
"My NixOs dotfiles - Home-manager, hyprland, nixvim, sops, kitty, wofi, waybar, lf, dunst, qutebrowser, tmux, ..."; 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 = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@ -23,33 +26,28 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
}; };
outputs = inputs@{ nixpkgs, home-manager, sops-nix, hyprland, spicetify-nix outputs = inputs@{ nixpkgs, nur, ... }: {
, nur, nixos-hardware, ... }: {
nixosConfigurations = { nixosConfigurations = {
nixy = nixpkgs.lib.nixosSystem { nixy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
{ nixpkgs.overlays = [ nur.overlay ]; }
./hosts/laptop/configuration.nix ./hosts/laptop/configuration.nix
nixos-hardware.nixosModules.omen-16-n0005ne inputs.nixos-hardware.nixosModules.omen-16-n0005ne
{ _module.args = { inherit inputs; }; } inputs.home-manager.nixosModules.home-manager
home-manager.nixosModules.home-manager
{ {
nixpkgs.overlays = [ nur.overlay ];
_module.args = { inherit inputs; };
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
users."hadi" = import ./home/laptop.nix; # CHANGE ME users."hadi" = import ./home/laptop.nix; # CHANGE ME
extraSpecialArgs = { extraSpecialArgs = { inherit inputs; };
inherit inputs;
inherit spicetify-nix;
inherit sops-nix;
inherit hyprland;
};
}; };
} }
]; ];
}; };
}; };
}; };
} }

View File

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

View File

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

View File

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