From 30148a65292f4d9723cf1b34e7b28d891da53aa2 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Tue, 19 Oct 2021 23:44:37 +0100 Subject: [PATCH] Add dingbox config and fix i3utils --- .../dingbox/configuration.nix | 0 .../dingbox/hardware-configuration.nix | 0 user/common/i3utils/default.nix | 6 +- user/dingbox/home.nix | 72 +++++++++++++++++++ 4 files changed, 75 insertions(+), 3 deletions(-) rename configuration.nix => hosts/dingbox/configuration.nix (100%) rename hardware-configuration.nix => hosts/dingbox/hardware-configuration.nix (100%) create mode 100644 user/dingbox/home.nix diff --git a/configuration.nix b/hosts/dingbox/configuration.nix similarity index 100% rename from configuration.nix rename to hosts/dingbox/configuration.nix diff --git a/hardware-configuration.nix b/hosts/dingbox/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to hosts/dingbox/hardware-configuration.nix diff --git a/user/common/i3utils/default.nix b/user/common/i3utils/default.nix index ddb617b..bf9e4e9 100644 --- a/user/common/i3utils/default.nix +++ b/user/common/i3utils/default.nix @@ -2,13 +2,13 @@ with import {}; buildGoModule rec { pname = "i3utils"; - version = "0.0.1"; + version = "v0.0.1"; src = fetchFromSourcehut { owner = "~dpatterbee"; repo = pname; rev = "${version}"; - sha256 = "01wqlf66y172idq1850nby7nmb4075sryis899ldzpk1jakc5b3f"; + sha256 = "1h97131558nklhi3f2a3jl9np2n8y1irh088jc5iry63zpsfx2qm"; }; - vendorSha256 = "0pnd89iqdj3f719xf4iy5r04n51d0rrrf0qb2zjirpw7vh7g82i9"; + vendorSha256 = "1lzr4ga58aa35z0vkpw8jldplvg174q49nqqpdv0vz0aj3m585nq"; } diff --git a/user/dingbox/home.nix b/user/dingbox/home.nix new file mode 100644 index 0000000..192d194 --- /dev/null +++ b/user/dingbox/home.nix @@ -0,0 +1,72 @@ +{ pkgs, ... }: + +{ + imports = [ + ../common/i3 + ../common/polybar + ]; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + + home.username = "daniel"; + home.homeDirectory = "/home/daniel"; + + home.file.".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors"; + + xsession.enable = true; + services.dunst.enable = true; + + home.packages = with pkgs; + [ + (import ../common/i3utils) + alacritty + chezmoi + element-desktop + feh + fzf + go_1_17 + i3 + i3lock + lazygit + nerdfonts + oh-my-zsh + pavucontrol + restic + rofi + starship + xclip + ]; + + home.keyboard = { + layout = "gb"; + options = [ + "caps:escape" + ]; + }; + + programs = { + zsh = { + enable = true; + oh-my-zsh = { + enable = true; + plugins = [ "git" "fzf" ]; + theme = "agnoster"; + }; + }; + }; + + programs.git = { + enable = true; + userName = "Daniel Patterson"; + userEmail = "me@danielpatterson.dev"; + }; + + programs.starship.enable = true; + + programs.neovim.enable = true; + programs.neovim.viAlias = true; + programs.neovim.vimAlias = true; + + home.stateVersion = "21.05"; +}