This commit is contained in:
Nilstrieb 2023-05-25 18:53:04 +02:00
parent 47ae5b8f89
commit d2cd63f8c2
3 changed files with 35 additions and 5 deletions

View file

@ -6,6 +6,7 @@
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
# nur.url = github:nix-community/NUR;
# Home manager
home-manager.url = "github:nix-community/home-manager/release-22.11";

View file

@ -1,7 +1,7 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs, lib, config, pkgs, ... }: {
{ inputs, lib, config, pkgs, nur, ... }: {
# You can import other home-manager modules here
imports = [
# If you want to use home-manager modules from other flakes (such as nix-colors):
@ -35,18 +35,46 @@
# TODO: Set your username
home = {
username = "your-username";
homeDirectory = "/home/your-username";
username = "nils";
homeDirectory = "/home/nils";
};
# Add stuff for your user as you see fit:
# programs.neovim.enable = true;
# home.packages = with pkgs; [ steam ];
programs.neovim.enable = true;
home.packages = with pkgs; [
steam
discord
spotify
];
# Enable home-manager and git
programs.home-manager.enable = true;
programs.git.enable = true;
programs.firefox = {
enable = true;
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [
# ublock-origin
# bitwarden
# ];
profiles = {
nils = {
id = 0;
name = "nils";
};
};
};
programs.vscode = {
enable = true;
package = pkgs.vscode;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
rust-lang.rust-analyzer
usernamehw.errorlens
];
};
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";

View file

@ -127,6 +127,7 @@
packages = with pkgs; [
firefox
vscode
home-manager
];
};
};