From 6784eeaa3ab711e2235fe62636dc46dd3776c495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 2 Feb 2025 22:06:01 +0100 Subject: [PATCH] Home Gen445 @ 2025-01-30-15:15 --- flake.nix | 34 ++++++++++++++++++---------------- home/jroeger.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 16 deletions(-) create mode 100644 home/jroeger.nix diff --git a/flake.nix b/flake.nix index 8f791da..8415401 100644 --- a/flake.nix +++ b/flake.nix @@ -33,13 +33,10 @@ }; outputs = { - self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, - sops-nix, - plasma-manager, ... } @ inputs: let system = "x86_64-linux"; @@ -54,11 +51,7 @@ inherit inputs; }; modules = [ - ({ - config, - pkgs, - ... - }: {nixpkgs.overlays = [overlay-unstable];}) + ({...}: {nixpkgs.overlays = [overlay-unstable];}) nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1 ./hosts/comfy-station/configuration.nix ]; @@ -79,19 +72,28 @@ # Specify your home configuration modules here, for example, # the path to your home.nix. modules = [ - ({ - config, - pkgs, - ... - }: {nixpkgs.overlays = [overlay-unstable];}) - ( - {...}: {nixpkgs.config.allowUnfree = true;} - ) + ({...}: {nixpkgs.overlays = [overlay-unstable];}) + ({...}: {nixpkgs.config.allowUnfree = true;}) inputs.plasma-manager.homeManagerModules.plasma-manager inputs.sops-nix.homeManagerModules.sops ./home/jonas.nix ]; + # Optionally use extraSpecialArgs + # to pass through arguments to home.nix + extraSpecialArgs = {inherit inputs;}; + }; + homeConfigurations."jroeger" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.${system}; + + # Specify your home configuration modules here, for example, + # the path to your home.nix. + modules = [ + ({...}: {nixpkgs.overlays = [overlay-unstable];}) + ({...}: {nixpkgs.config.allowUnfree = true;}) + ./home/jroeger.nix + ]; + # Optionally use extraSpecialArgs # to pass through arguments to home.nix extraSpecialArgs = {inherit inputs;}; diff --git a/home/jroeger.nix b/home/jroeger.nix new file mode 100644 index 0000000..5c59d90 --- /dev/null +++ b/home/jroeger.nix @@ -0,0 +1,42 @@ +{...}: { + imports = [ + ../modules/home/doom + ../modules/home/kitty + ../modules/home/ranger + ../modules/home/yubikey.nix + ../modules/home/zsh + ]; + + # Home Manager needs a bit of information about you and the paths it should + # manage. + home.username = "jroeger"; + home.homeDirectory = "/home/jroeger"; + + # This value determines the Home Manager release that your configuration is + # compatible with. This helps avoid breakage when a new Home Manager release + # introduces backwards incompatible changes. + # + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "24.11"; # Please read the comment before changing. + + home.sessionVariables = { + EDITOR = "vim"; + }; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + + # Git + programs.git = { + enable = true; + userName = "Jonas Röger"; + userEmail = "jonas.kieran.roeger@iml.fraunhofer.de"; + difftastic.enable = true; + signing = { + signByDefault = true; + key = "4000EB35E1AE0F07"; + }; + }; +}