add multiple envs for packages
This commit is contained in:
parent
155bd93b89
commit
546c5170d7
11 changed files with 733 additions and 75 deletions
37
nix/hosts/carpates/configuration.nix
Normal file
37
nix/hosts/carpates/configuration.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Basic system metadata
|
||||
networking.hostName = "carpates";
|
||||
time.timeZone = "Europe/Madrid";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Nix settings
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
allowBroken = false;
|
||||
};
|
||||
|
||||
# Users
|
||||
users.users.catalin = {
|
||||
isNormalUser = true;
|
||||
description = "catalin";
|
||||
shell = pkgs.fish;
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
|
||||
# Minimal services
|
||||
networking.networkmanager.enable = true;
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Base CLI set only (shared across hosts)
|
||||
environment.systemPackages = import ../../base/packages.nix pkgs;
|
||||
|
||||
programs.fish.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
27
nix/hosts/carpates/home.nix
Normal file
27
nix/hosts/carpates/home.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Home Manager configuration for non-NixOS usage on host "carpates".
|
||||
# Apply with:
|
||||
# home-manager switch --flake ./nix#carpates
|
||||
|
||||
home.username = "catalin";
|
||||
home.homeDirectory = "/home/catalin";
|
||||
|
||||
# Use the same base CLI set as all hosts
|
||||
home.packages = import ../../base/packages.nix pkgs;
|
||||
|
||||
programs.fish.enable = true;
|
||||
|
||||
# Example: some common quality-of-life programs
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "catalin";
|
||||
userEmail = ""; # set if desired
|
||||
};
|
||||
|
||||
# Make sure HM itself can manage its state
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# Set the HM release; doesn't have to match NixOS release
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue