From 33d411ea7f5481b5d8b9fa39d5a053876e95c7f4 Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Thu, 25 May 2023 18:53:04 +0200 Subject: [PATCH] home --- flake.nix | 1 + home-manager/home.nix | 38 +++++++++++++++++++++++++++++++++----- nixos/configuration.nix | 1 + 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 61012a5..370ae34 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/home-manager/home.nix b/home-manager/home.nix index ea28c5e..a5d6598 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -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"; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index ad3ebe0..6496f25 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -127,6 +127,7 @@ packages = with pkgs; [ firefox vscode + home-manager ]; }; };