Implement profile

This commit is contained in:
2026-02-27 16:05:00 +01:00
parent 52344e28b1
commit 6eb53c661a
7 changed files with 46 additions and 12 deletions

View File

@@ -3,7 +3,9 @@
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
let
profile = import ./profile.nix;
in
{
imports =
[ # Include the results of the hardware scan.
@@ -16,7 +18,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "amelia"; # Define your hostname.
networking.hostName = profile.hostname; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enable networking

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }:
let
profile = import ../profile.nix;
in
{
imports = [
@@ -24,7 +27,7 @@
settings = {
default_session = {
command = "Hyprland";
user = "nichkara";
user = profile.username;
};
};
};

View File

@@ -5,6 +5,8 @@ let
rev = "96f9ca03450049baffbc8a2b71c3a40367edd2a5";
sha256 = "sha256-dHxf2UNEDC/KyDgjMMQ988hyGM2gasYNbNtLTityhDY=";
};
profile = import ../profile.nix;
in
{
environment.systemPackages = with pkgs; [
@@ -25,7 +27,7 @@ in
xwayland.enable = true;
};
home-manager.users.nichkara = { ... }: {
home-manager.users.${profile.username} = { ... }: {
home.file.".config/hypr" = {
source = dotfiles_hypr;
recursive = true;

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }:
let
profile = import ./profile.nix;
in
{
@@ -11,7 +11,7 @@ in
./system-environment/config.nix
];
users.users.nichkara = {
users.users.${profile.username} = {
isNormalUser = true;
description = "Nina Chloé Kassandra";
extraGroups = [ "networkmanager" "wheel" "docker" "scanner" "lp"];
@@ -21,7 +21,7 @@ in
home-manager.backupFileExtension = "bck.lck";
home-manager.users.nichkara = { pkgs, ... }: {
home-manager.users.${profile.username} = { pkgs, ... }: {
home.stateVersion = "25.11";
programs.git = {
enable = true;

View File

@@ -1,7 +1,7 @@
{
username = "nichkara";
hostname = "amelia";
hashedPassword = "$y$j9T$W72kGNL9hSTiN7CjnUpqH1$uyE1OzYN4kvbhhylX7pwRmLYYYmouRPVGIDZKwx8YW8";
hashed-password = "$y$j9T$W72kGNL9hSTiN7CjnUpqH1$uyE1OzYN4kvbhhylX7pwRmLYYYmouRPVGIDZKwx8YW8";
interface = "hyprland";
modules = {
base = true;

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
profile = import ../profile.nix;
in
{
imports = [
@@ -8,6 +11,9 @@
environment.systemPackages = with pkgs; [
# Make systems
gnumake
pathon3
]
++ lib.optionals profile.modules.development [
cmake
cmakeCurses

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
let
profile = import ../profile.nix;
in
{
environment.systemPackages = with pkgs; [
@@ -64,7 +67,7 @@
};
};
home-manager.users.nichkara = { ... }: {
home-manager.users.${profile.username} = { ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
@@ -84,7 +87,25 @@
ignorePatterns = [ ];
saveNoDups = true;
ignoreAllDups = true;
};
};
oh-my-zsh = {
enable = true;
theme = "sonicradish";
plugins = [
"git"
"z"
"dotenv"
"battery"
"emoji"
"emoji-clock"
"fzf"
"kitty"
"themes"
"tmux"
"vi-mode"
];
};
setOptions = [
"HIST_IGNORE_ALL_DUPS"