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). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, ... }:
let
profile = import ./profile.nix;
in
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
@@ -16,7 +18,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = 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. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enable networking # Enable networking

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }: { config, pkgs, ... }:
let
profile = import ../profile.nix;
in
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@@ -64,7 +67,7 @@
}; };
}; };
home-manager.users.nichkara = { ... }: { home-manager.users.${profile.username} = { ... }: {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@@ -84,7 +87,25 @@
ignorePatterns = [ ]; ignorePatterns = [ ];
saveNoDups = true; saveNoDups = true;
ignoreAllDups = 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 = [ setOptions = [
"HIST_IGNORE_ALL_DUPS" "HIST_IGNORE_ALL_DUPS"