Former-commit-id: aae1271cf0
This commit is contained in:
Hadi
2024-06-14 10:00:54 +02:00
parent 379424e228
commit d28ad77974
117 changed files with 617 additions and 1462 deletions

View File

@@ -1,5 +1,6 @@
{
description = "Nixy - Hadi's NixOS configuration";
description =
"My NixOs dotfiles - Home-manager, hyprland, nixvim, sops, kitty, wofi, waybar, lf, dunst, qutebrowser, tmux, ...";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -18,18 +19,20 @@
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
nurpkgs.url = "github:nix-community/NUR";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs =
inputs@{ nixpkgs, home-manager, sops-nix, hyprland, spicetify-nix, ... }: {
outputs = inputs@{ nixpkgs, home-manager, sops-nix, hyprland, spicetify-nix
, nur, nixos-hardware, ... }: {
nixosConfigurations = {
nixy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = [ nur.overlay ]; }
./hosts/laptop/configuration.nix
./hosts/laptop/fonts.nix
./hosts/laptop/tuigreet.nix
nixos-hardware.nixosModules.omen-16-n0005ne
{ _module.args = { inherit inputs; }; }
home-manager.nixosModules.home-manager
{
@@ -47,27 +50,6 @@
}
];
};
heaven = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/server/configuration.nix
{ _module.args = { inherit inputs; }; }
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users."hadi" = import ./home/server.nix; # CHANGE ME
extraSpecialArgs = {
inherit inputs;
inherit sops-nix;
};
};
}
];
};
};
};
}