-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 10db02d
Showing
10 changed files
with
600 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Copyright Wanja Chresta (c) 2022 | ||
|
||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
|
||
* Neither the name of Wanja Chresta nor the names of other | ||
contributors may be used to endorse or promote products derived | ||
from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/secret.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "nixpkgs"; | ||
|
||
light-control-flake.url = "light-control"; | ||
light-control-flake.inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
|
||
outputs = inputs@{ self, ... }: { | ||
homeConfiguration = args@{ ... }: { | ||
imports = [ ./home.nix ]; | ||
|
||
nixpkgs = { | ||
overlays = [ | ||
(final: prev: | ||
if inputs ? light-control-flake then { | ||
light-control = inputs.light-control-flake.packages.${prev.system}.light-control; | ||
} else {} | ||
) | ||
]; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ ... }: | ||
|
||
{ | ||
dark0_hard = "#1d2021"; | ||
dark0 = "#282828"; | ||
dark0_soft = "#32302f"; | ||
dark1 = "#3c3836"; | ||
dark2 = "#504945"; | ||
dark3 = "#665c54"; | ||
dark4 = "#7c6f64"; | ||
|
||
gray_245 = "#928374"; | ||
gray_244 = "#928374"; | ||
|
||
light0_hard = "#fb4934"; | ||
light0 = "#fbf1c7"; | ||
light0_soft = "#f2e5bc"; | ||
light1 = "#ebdbb2"; | ||
light2 = "#d5c4a1"; | ||
light3 = "#bdae93"; | ||
light4 = "#a89984"; | ||
|
||
bright_red = "#fb4934"; | ||
bright_green = "#b8bb26"; | ||
bright_yellow = "#fabd2f"; | ||
bright_blue = "#83a598"; | ||
bright_purple = "#d3869b"; | ||
bright_aqua = "#8ec07c"; | ||
bright_orange = "#fe8019"; | ||
|
||
neutral_red = "#cc241d"; | ||
neutral_green = "#98971a"; | ||
neutral_yellow = "#d79921"; | ||
neutral_blue = "#458588"; | ||
neutral_purple = "#b16286"; | ||
neutral_aqua = "#689d6a"; | ||
neutral_orange = "#d65d0e"; | ||
|
||
faded_red = "#9d0006"; | ||
faded_green = "#79740e"; | ||
faded_yellow = "#b57614"; | ||
faded_blue = "#076678"; | ||
faded_purple = "#8f3f71"; | ||
faded_aqua = "#427b58"; | ||
faded_orange = "#af3a03"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
#let | ||
# windowManager = pkgs.callPackage ./home-manager/windowManager.nix { inherit light-control; }; | ||
#in windowManager // | ||
{ | ||
imports = | ||
[ | ||
includes/kitty.nix | ||
includes/vim.nix | ||
includes/firefox.nix | ||
includes/development.nix | ||
includes/windowManager.nix | ||
]; | ||
|
||
nixpkgs.config.allowUnfree = true; | ||
|
||
# Home Manager needs a bit of information about you and the | ||
# paths it should manage. | ||
home.username = "monoid"; | ||
home.homeDirectory = "/home/monoid"; | ||
|
||
home.keyboard = { | ||
layout = "ch"; | ||
}; | ||
|
||
home.sessionPath = [ ".local/bin" ]; | ||
|
||
home.packages = with pkgs; [ | ||
ripgrep | ||
pavucontrol | ||
pulseaudio # for pactl | ||
lutris | ||
fceux # emulator | ||
glirc | ||
]; | ||
|
||
gtk = { | ||
enable = false; | ||
theme = { | ||
package = pkgs.gnome.gnome_themes_standard; | ||
name = "Adwaita-Dark"; | ||
}; | ||
}; | ||
|
||
home.file = { | ||
".local/bin/rise-of-industry" = { | ||
executable = true; | ||
text = '' | ||
#!/usr/bin/env bash | ||
cd "$HOME/Games/Rise of Industry/" | ||
steam-run ./start.sh | ||
''; | ||
}; | ||
}; | ||
|
||
programs.bash = { | ||
enable = true; | ||
|
||
initExtra = '' | ||
PROMPT_COLOR="0;34m" | ||
export PS1="\[\033[$PROMPT_COLOR\]\[\e]0;\u@\h: \w\a\]\u:\w\\$\[\033[0m\] " | ||
''; | ||
|
||
shellAliases = { | ||
ehome = '' | ||
${pkgs.neovim}/bin/nvim -O ~/src/dotconf/home-manager/home.nix ~/src/dotconf/home-manager/includes && \ | ||
${pkgs.git}/bin/git -C ~/src/dotconf/home-manager commit -a -m "Changes by monoid" && \ | ||
sudo nixos-rebuild switch --update-input monoid-home | ||
''; | ||
enix = '' | ||
sudo -E ${pkgs.neovim}/bin/nvim -O /etc/nixos/configuration.nix /etc/nixos/includes/ && \ | ||
sudo rebuildAndCommitSystem | ||
''; | ||
}; | ||
}; | ||
|
||
# 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 can update Home Manager without changing this value. See | ||
# the Home Manager release notes for a list of state version | ||
# changes in each release. | ||
home.stateVersion = "20.09"; | ||
|
||
# Let Home Manager install and manage itself. | ||
programs.home-manager.enable = false; | ||
} | ||
|
||
# vim: set sw=2 expandtabs=2 tabstop=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
home.packages = with pkgs; [ | ||
ghc | ||
go | ||
]; | ||
|
||
programs.git = { | ||
enable = true; | ||
|
||
userEmail = "[email protected]"; | ||
userName = "wchresta"; | ||
|
||
extraConfig = { | ||
core = { | ||
editor = "nvim"; | ||
}; | ||
|
||
pull = { | ||
rebase = true; | ||
}; | ||
}; | ||
}; | ||
|
||
programs.vscode = { | ||
enable = true; | ||
extensions = with pkgs.vscode-extensions; [ | ||
ms-vscode.cpptools | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
programs.firefox = { | ||
enable = true; | ||
|
||
profiles.main-profile = { | ||
isDefault = true; | ||
name = "main-profile"; | ||
|
||
settings = { | ||
"browser.search.widget.inNavBar" = true; | ||
"datareporting.policy.dataSubmissionPolicyAcceptedVersion" = 2; | ||
"media.videocontrols.picture-in-picture.allow-multiple" = false; | ||
"media.videocontrols.picture-in-picture.enabled" = false; | ||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; | ||
}; | ||
|
||
userChrome = '' | ||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | ||
/* Recreates the basic functionality of the popular Roomy Bookmarks Toolbar add-on: | ||
Hide bookamrks bar items label text, show on hover. */ | ||
.bookmark-item { | ||
height: 16px !important; | ||
margin: -2px 0 !important; | ||
padding: 0 2px !important; | ||
} | ||
.bookmark-item > .toolbarbutton-text { | ||
margin-top: -1px !important; | ||
} | ||
.bookmark-item:not(:hover):not([open="true"]) > .toolbarbutton-text { | ||
display: none !important; | ||
} | ||
.bookmark-item > .toolbarbutton-icon { | ||
height: 16px !important; | ||
width: 16px !important; | ||
margin: -2px 0 -2px 0 !important; | ||
padding: 0px !important; | ||
} | ||
#PlacesToolbarItems > .bookmark-item:not(:hover):not([open="true"]) > .toolbarbutton-icon[label]:not([label=""]) { | ||
margin-inline-end: 0px !important; | ||
} | ||
''; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ pkgs, ... }: | ||
|
||
let | ||
gruvbox = import ../gruvbox.nix {}; | ||
in { | ||
programs.kitty = { | ||
enable = true; | ||
|
||
font.package = pkgs.fira-code; | ||
font.name = "Fira Code Regular 12"; | ||
|
||
settings = { | ||
background = gruvbox.dark0; | ||
foreground = gruvbox.light1; | ||
|
||
selection_background = gruvbox.light1; | ||
selection_foreground = gruvbox.dark0; | ||
|
||
cursor = gruvbox.light4; | ||
cursor_text_color = "background"; | ||
|
||
active_tab_background = gruvbox.dark0; | ||
active_tab_foreground = gruvbox.light1; | ||
active_tab_font_style = "bold"; | ||
inactive_tab_background = gruvbox.dark0; | ||
inactive_tab_foreground = gruvbox.light4; | ||
inactive_tab_font_style = "normal"; | ||
|
||
# Black | ||
color0 = gruvbox.dark3; | ||
color8 = gruvbox.gray_244; | ||
|
||
# Red | ||
color1 = gruvbox.neutral_red; | ||
color9 = gruvbox.bright_red; | ||
|
||
# Green | ||
color2 = gruvbox.neutral_green; | ||
color10 = gruvbox.bright_green; | ||
|
||
# Yellow | ||
color3 = gruvbox.neutral_yellow; | ||
color11 = gruvbox.bright_yellow; | ||
|
||
# Blue | ||
color4 = gruvbox.neutral_blue; | ||
color12 = gruvbox.bright_blue; | ||
|
||
# Magenta | ||
color5 = gruvbox.neutral_purple; | ||
color13 = gruvbox.bright_purple; | ||
|
||
# Cyan | ||
color6 = gruvbox.neutral_aqua; | ||
color14 = gruvbox.bright_aqua; | ||
|
||
# White | ||
color7 = gruvbox.light1; | ||
color15 = gruvbox.light1; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
programs.neovim = { | ||
enable = true; | ||
viAlias = true; | ||
vimAlias = true; | ||
|
||
extraConfig = '' | ||
syntax on | ||
filetype plugin indent on | ||
set tabstop=2 | ||
set shiftwidth=2 | ||
set ai | ||
set mouse=a | ||
set hlsearch | ||
let mapleader="," | ||
let maplocalleader="," | ||
set termguicolors | ||
let g:gruvbox_italic=1 | ||
colorscheme gruvbox | ||
''; | ||
|
||
plugins = with pkgs.vimPlugins; [ | ||
vim-nix | ||
vim-go | ||
gruvbox-nvim | ||
]; | ||
}; | ||
} |
Oops, something went wrong.