updates
This commit is contained in:
parent
c0c427ecc9
commit
21bcfce762
2 changed files with 113 additions and 47 deletions
|
@ -1,23 +1,22 @@
|
|||
#<BS> Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
programs.hyprland.enable = true;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = ["git" "zsh-autosuggestions" "zsh-autocomplete" "sudo"];
|
||||
theme = "powerlevel10k";
|
||||
};
|
||||
};
|
||||
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
programs.fish.enable = true;
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
(nerdfonts.override {fonts = ["FiraCode" "Iosevka"];})
|
||||
];
|
||||
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
@ -30,7 +29,6 @@
|
|||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
|
||||
# Modesetting is required.
|
||||
modesetting.enable = true;
|
||||
|
||||
|
@ -68,7 +66,7 @@
|
|||
};
|
||||
grub = {
|
||||
enable = true;
|
||||
devices = [ "nodev" ];
|
||||
devices = ["nodev"];
|
||||
useOSProber = true;
|
||||
};
|
||||
};
|
||||
|
@ -137,24 +135,26 @@
|
|||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
users.users.nmarks = {
|
||||
isNormalUser = true;
|
||||
description = "Natalie Marks";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
kate
|
||||
vim
|
||||
discord
|
||||
kitty
|
||||
|
||||
lua-language-server
|
||||
# thunderbird
|
||||
];
|
||||
};
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
};
|
||||
environment.variables.EDITOR = "nvim";
|
||||
|
||||
# Allow unfree packages
|
||||
|
@ -163,9 +163,24 @@
|
|||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
fish
|
||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
wget
|
||||
git
|
||||
unzip
|
||||
ripgrep
|
||||
clang
|
||||
fd
|
||||
cargo
|
||||
python3
|
||||
python311Packages.pynvim
|
||||
python311Packages.pip
|
||||
steam
|
||||
ruby
|
||||
julia
|
||||
xclip
|
||||
nodePackages.npm
|
||||
go
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
@ -194,5 +209,4 @@
|
|||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
|
60
home.nix
60
home.nix
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = "nmarks";
|
||||
|
@ -18,6 +20,14 @@
|
|||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
home.packages = with pkgs; [
|
||||
stylua
|
||||
alejandra
|
||||
webcord
|
||||
btop
|
||||
neofetch
|
||||
#zsh-autosuggestions
|
||||
#zsh-autocomplete
|
||||
#zsh-powerlevel10k
|
||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||
# # "Hello, world!" when run.
|
||||
# pkgs.hello
|
||||
|
@ -35,14 +45,54 @@
|
|||
# echo "Hello, ${config.home.username}!"
|
||||
# '')
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
extraPackages = with pkgs; [
|
||||
lua-language-server
|
||||
nil
|
||||
alejandra
|
||||
];
|
||||
};
|
||||
#Link neovim config into nix
|
||||
xdg.configFile.nvim.source = ./nvim;
|
||||
#xdg.configFile.nvim.source = ./nvim;
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
theme = "Catppuccin-Mocha";
|
||||
extraConfig = "font_family Iosevka NF
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
bold_font auto";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "tide";
|
||||
src = pkgs.fishPlugins.tide.src;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
/*
|
||||
programs.zsh = {
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "extract"];
|
||||
};
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
plugins = [
|
||||
{name = "powerlevel10k";src = pkgs.zsh-powerlevel10k;file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";}
|
||||
];
|
||||
};
|
||||
*/
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
|
@ -70,7 +120,9 @@
|
|||
#
|
||||
# if you don't want to manage your shell through Home Manager.
|
||||
home.sessionVariables = {
|
||||
# EDITOR = "emacs";
|
||||
EDITOR = "nvim";
|
||||
TERMINAL = "kitty";
|
||||
BROWSER = "firefox";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
|
|
Loading…
Reference in a new issue