mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 20:21:53 +00:00
- 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
26 lines
577 B
Nix
26 lines
577 B
Nix
{ config, lib, pkgs, inputs, user, ... }:
|
|
{
|
|
imports = [
|
|
../../modules/common.nix
|
|
./hardware-configuration.nix
|
|
inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
|
|
networking.hostName = "pc";
|
|
|
|
# Host-specific tweaks
|
|
services.printing.enable = true; # example: enable printing on PC
|
|
|
|
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;
|
|
};
|
|
}
|