a working graphical environment!

This commit is contained in:
Aria Nolan 2023-09-29 22:39:34 -04:00
parent c6061fc466
commit 40ffd48739
2 changed files with 44 additions and 82 deletions

View file

@ -10,6 +10,8 @@
./hardware-configuration.nix ./hardware-configuration.nix
./secrets.nix ./secrets.nix
<home-manager/nixos> <home-manager/nixos>
<nixos-hardware/dell/xps/15-9520>
<nixos-hardware/common/gpu/nvidia/disable.nix>
]; ];
# Enable Flakes and the new command-line tool # Enable Flakes and the new command-line tool
@ -41,8 +43,10 @@
home = "/home/tacocat"; home = "/home/tacocat";
description = "Aria Nolan"; description = "Aria Nolan";
extraGroups = [ "wheel" "networkmanager" "audio" "video" "bluetooth" "kvm" ]; extraGroups = [ "wheel" "networkmanager" "audio" "video" "bluetooth" "kvm" ];
# shell = "/bin/bash"; };
packages = with pkgs; [
home-manager.users.tacocat = { pkgs, ... }: {
home.packages = with pkgs; [
firefox firefox
thunderbird thunderbird
vim vim
@ -55,14 +59,34 @@
git git
gcc gcc
]; ];
home.stateVersion = "23.11";
home.username = "tacocat";
home.homeDirectory = "/home/tacocat";
programs.bash = {
enable = true;
enableCompletion = true;
}; };
programs.git = {
enable = true;
userName = "Aria Nolan";
userEmail = "aria@chytrid.xyz";
};
programs.kitty = {
enable = true;
font.name = "DejaVu Sans Mono";
font.package = pkgs.dejavu_fonts;
};
};
nix.settings.trusted-users = [ "tacocat" ]; nix.settings.trusted-users = [ "tacocat" ];
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
fish fish
bash
]; ];
defaultPackages = with pkgs; [ defaultPackages = with pkgs; [
perl perl
@ -84,6 +108,7 @@
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
]; ];
}; };
hardware.opengl.enable = true;
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.

View file

@ -1,6 +1,9 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ <home-manager/nixos> ];
# TODO please change the username & home direcotry to your own # TODO please change the username & home direcotry to your own
home.username = "tacocat"; home.username = "tacocat";
home.homeDirectory = "/home/tacocat"; home.homeDirectory = "/home/tacocat";
@ -29,85 +32,19 @@
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = with pkgs; [ home.packages = with pkgs; [
# here is some command line tools I use frequently firefox
# feel free to add your own or remove some of them thunderbird
vim
# archives neovim
zip kitty
unzip wget
p7zip tmux
helix
# utils river
exa # A modern replacement for ls git
fzf # A command-line fuzzy finder gcc
# networking tools
aria2 # A lightweight multi-protocol & multi-source command-line download utility
# misc
file
which
tree
gnused
gnutar
gawk
zstd
gnupg
# nix related
#
# it provides the command `nom` works just like `nix`
# with more details log output
nix-output-monitor
# productivity
hugo # static site generator
glow # markdown previewer in terminal
btop # replacement of htop/nmon
iotop # io monitoring
iftop # network monitoring
# system call monitoring
strace # system call monitoring
ltrace # library call monitoring
lsof # list open files
# system tools
sysstat
lm_sensors # for `sensors` command
ethtool
pciutils # lspci
usbutils # lsusb
]; ];
# starship - an customizable prompt for any shell
# programs.starship = {
# enable = true;
# # custom settings
# settings = {
# add_newline = false;
# aws.disabled = true;
# gcloud.disabled = true;
# line_break.disabled = true;
# };
# };
# alacritty - a cross-platform, GPU-accelerated terminal emulator
# programs.alacritty = {
# enable = true;
# # custom settings
# settings = {
# env.TERM = "xterm-256color";
# font = {
# size = 12;
# draw_bold_text_with_bright_colors = true;
# };
# scrolling.multiplier = 5;
# selection.save_to_clipboard = true;
# };
# };
programs.bash = { programs.bash = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@ -129,7 +66,7 @@
# You can update home Manager without changing this value. See # You can update home Manager without changing this value. See
# the home Manager release notes for a list of state version # the home Manager release notes for a list of state version
# changes in each release. # changes in each release.
home.stateVersion = "23.05"; home.stateVersion = "23.11";
# Let home Manager install and manage itself. # Let home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;