Add initial Nix flake configuration for PC and Laptop with Home Manager support

- Create flake.nix to define NixOS configurations for PC and Laptop
- Add README.md with setup instructions and layout overview
- Implement common NixOS settings in modules/common.nix
- Configure Home Manager for user-specific settings in home/users/user/home.nix
- Set up hardware configurations for both PC and Laptop
- Enable Home Manager integration in host configurations
- Introduce Zen Browser package definition
This commit is contained in:
2025-10-05 03:17:28 +01:00
commit b0dacb2bcf
9 changed files with 401 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{ config, lib, pkgs, inputs, user, ... }:
{
imports = [
../../modules/common.nix
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
];
networking.hostName = "laptop";
# Host-specific tweaks
powerManagement.powertop.enable = true; # example: laptop power savings
services.tlp.enable = true;
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
};
# Home Manager user wiring
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${user} = import ../../home/users/${user}/home.nix;
};
}