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 = { inputs = {
# Nixpkgs # Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
# nur.url = github:nix-community/NUR;
# Home manager # Home manager
home-manager.url = "github:nix-community/home-manager/release-22.11"; home-manager.url = "github:nix-community/home-manager/release-22.11";

View file

@ -1,7 +1,7 @@
# This is your home-manager configuration file # This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) # 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 # You can import other home-manager modules here
imports = [ imports = [
# If you want to use home-manager modules from other flakes (such as nix-colors): # If you want to use home-manager modules from other flakes (such as nix-colors):
@ -35,18 +35,46 @@
# TODO: Set your username # TODO: Set your username
home = { home = {
username = "your-username"; username = "nils";
homeDirectory = "/home/your-username"; homeDirectory = "/home/nils";
}; };
# Add stuff for your user as you see fit: # Add stuff for your user as you see fit:
# programs.neovim.enable = true; programs.neovim.enable = true;
# home.packages = with pkgs; [ steam ]; home.packages = with pkgs; [
steam
discord
spotify
];
# Enable home-manager and git # Enable home-manager and git
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.git.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 # Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch"; systemd.user.startServices = "sd-switch";

View file

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