Implement profile
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
username = "nichkara";
|
||||
hostname = "amelia";
|
||||
hashedPassword = "$y$j9T$W72kGNL9hSTiN7CjnUpqH1$uyE1OzYN4kvbhhylX7pwRmLYYYmouRPVGIDZKwx8YW8";
|
||||
hashed-password = "$y$j9T$W72kGNL9hSTiN7CjnUpqH1$uyE1OzYN4kvbhhylX7pwRmLYYYmouRPVGIDZKwx8YW8";
|
||||
interface = "hyprland";
|
||||
modules = {
|
||||
base = true;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -86,6 +89,24 @@
|
||||
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"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user