Facted out core config

This commit is contained in:
agryphus 2023-12-07 13:38:13 -05:00
parent 16d3e7e80a
commit c549c3be71
2 changed files with 29 additions and 35 deletions

View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
imports = [
./core.nix
];
networking.hostName = "nix";
time.timeZone = "America/New_York";
# Define a user account. Don't forget to set a password with passwd.
users.users.nixos = {
isNormalUser = true;
extraGroups = [ # User implicitly in "users" group
"wheel" # Sudo priviledges
];
shell = pkgs.zsh;
# Set so when mutableUsers is set to "false", the user still has a way to login.
password = "";
};
}

View file

@ -1,26 +1,6 @@
# This configuration is considered to be core to my system. Each group of features considered not core
# will be found in one of the ./profile
{ config, pkgs, ... }: { config, pkgs, ... }:
let
# Change this to your user's name
HOME = "/home/vince";
in
{ {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./personal.nix
./profiles/emacs.nix
./profiles/lf.nix
./profiles/nvim.nix
./profiles/virtualbox.nix
./profiles/desktop_wayland.nix
./profiles/desktop_x.nix
];
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = '' extraOptions = ''
@ -28,29 +8,19 @@ in
''; '';
}; };
environment.sessionVariables = { # Files to add to /etc
ZDOTDIR = "$HOME/.config/zsh"; environment.etc = {
"zshenv.local".text = ''
export ZDOTDIR="$HOME/.config/zsh"
'';
}; };
environment.pathsToLink = [ environment.pathsToLink = [
"/share" "/share"
]; ];
system.activationScripts.linkLocalBin.text = ''
#!/usr/bin/env sh
# Links things in and out of /usr/local/bin
# Linking files into /usr/local/bin from main user
if [ ! -e /usr/local/bin/pinentry-wrapper ] && [ -e /home/vince/.local/bin/pinentry-wrapper ]; then
ln -s /home/vince/.local/bin/pinentry-wrapper /usr/local/bin/pinentry-wrapper
fi
'';
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Bluetooth daemon # Bluetooth daemon
services.blueman.enable = true; services.blueman.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
@ -110,6 +80,7 @@ in
devour # Opens new program on top of terminal devour # Opens new program on top of terminal
distrobox # Easily spin up VMs of other distos distrobox # Easily spin up VMs of other distos
entr # Hooks for file changes entr # Hooks for file changes
expect # Provides `unbuffer`
git # Imagine not having this git # Imagine not having this
grc # Generic command output colorizer grc # Generic command output colorizer
htop-vim # Process monitor, with vim bindings htop-vim # Process monitor, with vim bindings