From b9a26e1817ba9f38dc31f460eb41852800ef72b7 Mon Sep 17 00:00:00 2001 From: Mats Rauhala Date: Sat, 20 Nov 2021 21:37:25 +0200 Subject: [PATCH] Config for desktop --- flake.nix | 25 +++++++++++++- freya/masse.nix | 92 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 freya/masse.nix diff --git a/flake.nix b/flake.nix index 5d3745f..b29902a 100644 --- a/flake.nix +++ b/flake.nix @@ -81,7 +81,30 @@ ]; }; }; - }; + "masse@freya" = home-manager.lib.homeManagerConfiguration { + system = system; + homeDirectory = "/home/masse"; + username = "masse"; + stateVersion = "21.05"; + + pkgs = import nixpkgs { + system = system; + overlays = self.overlays ++ [ + (final: prev: { + kobodl = inputs.kobodl.packages.${system}.kobodl; + }) + ]; + }; + + configuration = {pkgs,...}: + { + programs.home-manager.enable = true; + imports = self.nixosModules ++ [ + ./freya/masse.nix + ]; + }; + }; + }; }; } diff --git a/freya/masse.nix b/freya/masse.nix new file mode 100644 index 0000000..7a5c249 --- /dev/null +++ b/freya/masse.nix @@ -0,0 +1,92 @@ +{config, lib, pkgs,...}: + + +{ + programs.command-not-found.enable = true; + + home.keyboard.layout = "fi"; + + home.packages = with pkgs; [ + calibre + okular + gimp + inkscape + gwenview + myVim + myEmacs + firefox-bin + ]; + + services.flameshot = { + enable = true; + }; + services.syncthing = { + enable = true; + tray = false; + }; + services.xcape = { + enable = true; + mapExpression = { + "Hyper_L" = "Tab"; + }; + }; + home.file.".xprofile".text = '' + xmodmap ~/.Xmodmap + ''; + + services.emacs = { + enable = true; + package = pkgs.myEmacs; + }; + + home.file.".Xmodmap".text = '' +remove Lock = Caps_Lock +add Lock = Escape +keysym Caps_Lock = Escape +keysym Escape = Caps_Lock + +keycode 23 = Hyper_L +keycode 255 = Tab + ''; + programs.git = { + enable = true; + userName = "Mats Rauhala"; + userEmail = "mats.rauhala@iki.fi"; + signing = { + key = "2104943D6033C8F4F7D4F560BDA6DFEDBCFB6779"; + }; + ignores = [ + "env" + "*.swp" + "*.swo" + "*.orig" + "*.crt" + "*.key" + "*.log" + "tags" + "result" + "*.pub" + "*.db" + "*.sqlite" + ".projectile" + ".dir-locals.el" + ]; + extraConfig = { + push = { + default = "simple"; + }; + }; + }; + programs.ssh = { + enable = true; + # controlMaster = "yes"; + # controlPersist = "10m"; + forwardAgent = true; + + matchBlocks = { + }; + }; + + programs.myZsh.enable = true; + programs.myUrxvt.enable = true; +}