feat: NixOS | add disko and hashed password for user

This commit is contained in:
2025-01-31 16:49:54 +05:00
parent 6b844a28da
commit e885306bf0
4 changed files with 83 additions and 28 deletions

View File

@@ -6,26 +6,40 @@
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland";
# Disko
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
disko,
...
} @ inputs:
let
system = "x86_64-linux";
host = "rihla";
user = "shahab";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
"${host}" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./nixos/configuration.nix ];
specialArgs = { inherit inputs; };
modules = [
disko.nixosModules.disko
./nixos/configuration.nix
./nixos/disko-config.nix
./nixos/hardware-configuration.nix
];
specialArgs = {
inherit inputs;
meta = {
hostname = host;
};
};
};
};