Update nix

This commit is contained in:
elkowar 2020-08-24 15:57:25 +02:00
parent 324302cc3c
commit 67268815e0
11 changed files with 53 additions and 39 deletions

View file

@ -1,4 +1,4 @@
{ {
"optOut": false, "optOut": false,
"lastUpdateCheck": 1597756945539 "lastUpdateCheck": 1598261358949
} }

View file

@ -1 +1 @@
/nix/store/h2i643kribbs0wngd2sinhr1p3dj2ib0-home-manager-files/.config/htop/htoprc /nix/store/9pbs833w662kd30yb8q5lr0s7qvryzkr-home-manager-files/.config/htop/htoprc

View file

@ -128,7 +128,7 @@ scratchpads =
where where
--launchWhatsapp = "gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop" --launchWhatsapp = "gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop"
launchWhatsapp = "google-chrome-stable --start-fullscreen -kiosk --app='https://web.whatsapp.com'" launchWhatsapp = "google-chrome-stable --start-fullscreen -kiosk --app='https://web.whatsapp.com'"
launchDiscord = "Discord" launchDiscord = "discocss"
--launchDiscord = "beautifuldiscord --css /home/leon/.config/beautifuldiscord/custom_discord.css" --launchDiscord = "beautifuldiscord --css /home/leon/.config/beautifuldiscord/custom_discord.css"
@ -231,6 +231,8 @@ myStartupHook = do
spawnOnce "redshift -P -O 5000 &" spawnOnce "redshift -P -O 5000 &"
spawn "xset r rate 300 50 &" -- make key repeat quicker spawn "xset r rate 300 50 &" -- make key repeat quicker
spawn "/home/leon/.screenlayout/dualscreen-stacked.sh" spawn "/home/leon/.screenlayout/dualscreen-stacked.sh"
spawnOnce "xsetroot -cursor_name left_ptr"
spawnOnce "xrdb -merge ~/.Xresources"
io $ threadDelay $ 1000 * 100 io $ threadDelay $ 1000 * 100
spawnOnce "/home/leon/Downloads/picom --config /home/leon/.config/picom.conf --experimental-backends --backend xrender" --no-fading-openclose" spawnOnce "/home/leon/Downloads/picom --config /home/leon/.config/picom.conf --experimental-backends --backend xrender" --no-fading-openclose"
spawn "/home/leon/.config/polybar/launch.sh" spawn "/home/leon/.config/polybar/launch.sh"

View file

@ -10,7 +10,9 @@
{ {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
overlays = [ (import ./overlay) ]; overlays = [
(import ./overlay)
];
packageOverrides = pkgs: { packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
@ -26,6 +28,7 @@
enable = true; enable = true;
enableFish = true; enableFish = true;
enableZsh = true; enableZsh = true;
includeNiceToHaves = true;
}; };
desktop.enable = true; desktop.enable = true;
desktop.colors = import ./modules/desktop/colors/gruvbox.nix; desktop.colors = import ./modules/desktop/colors/gruvbox.nix;

View file

@ -1,8 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.elkowar.base; cfg = config.elkowar.base;
elkowar_local = import ../local/default.nix { }; elkowar_local = import ../local/default.nix {};
myConf = import ../myConfig.nix;
sources = import ../nix/sources.nix; sources = import ../nix/sources.nix;
in in
{ {
@ -10,6 +9,7 @@ in
enable = lib.mkEnableOption "Basic profile enabled"; enable = lib.mkEnableOption "Basic profile enabled";
enableFish = lib.mkEnableOption "Fish shell"; enableFish = lib.mkEnableOption "Fish shell";
enableZsh = lib.mkEnableOption "Zsh shell"; enableZsh = lib.mkEnableOption "Zsh shell";
includeNiceToHaves = lib.mkEnableOption "Add nice-to-have, non-essential programs";
}; };
imports = [ ./term ./generalConfig.nix ]; imports = [ ./term ./generalConfig.nix ];
@ -20,35 +20,43 @@ in
elkowar.programs.fish.enable = cfg.enableFish; elkowar.programs.fish.enable = cfg.enableFish;
elkowar.generalConfig.shellAbbrs = { elkowar.generalConfig.shellAbbrs = {
vim = "nvim"; vim = "nvim";
tsh = "trash"; cxmonad = "cd ~/.xmonad && nvim /home/leon/.xmonad/lib/Config.hs && cd -";
cxmonad = "nvim /home/leon/.xmonad/lib/Config.hs";
cnix = "cd ~/nixpkgs/ && nvim home.nix && cd -"; cnix = "cd ~/nixpkgs/ && nvim home.nix && cd -";
cvim = "cd ~/.config/nvim/ && nvim init.vim && cd -";
gaa = "git add --all"; gaa = "git add --all";
gc = "git commit -m "; gc = "git commit -m ";
gp = "git push"; gp = "git push";
gs = "git status"; gst = "git status";
}; };
home.packages = with pkgs; [ home.packages = with pkgs; lib.mkMerge [
(pkgs.callPackage ../packages/fet.sh.nix { }) [
sources.manix sources.manix
direnv direnv
rnix-lsp rnix-lsp
nix-prefetch-git nix-prefetch-git
gtop
bat
websocat
niv niv
bat
exa exa
trash-cli trash-cli
mdcat
github-cli
haskellPackages.nix-tree
ripgrep ripgrep
fd fd
jq jq
cachix
]
(
lib.mkIf cfg.includeNiceToHaves [
haskellPackages.nix-tree
cloc
fet-sh
mdcat
github-cli
websocat
gtop
]
)
]; ];
programs = { programs = {

View file

@ -1 +1 @@
{...}: { imports = [ ./desktop ./term ./base.nix ./desktop.nix ./generalConfig.nix]; } { ... }: { imports = [ ./desktop ./term ./base.nix ./desktop.nix ./generalConfig.nix ]; }

View file

@ -17,6 +17,7 @@ in
'' ''
); );
settings = { settings = {
live_config_reload = true;
window = { window = {
padding.x = 20; padding.x = 20;
padding.y = 20; padding.y = 20;

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.elkowar.programs.rofi; cfg = config.elkowar.programs.rofi;
myConf = import ../myConfig.nix;
in in
{ {
options.elkowar.programs.rofi = { options.elkowar.programs.rofi = {

View file

@ -16,6 +16,7 @@ in
keyMode = "vi"; keyMode = "vi";
shortcut = "y"; shortcut = "y";
terminal = "tmux-256color"; terminal = "tmux-256color";
escapeTime = 0;
customPaneNavigationAndResize = true; customPaneNavigationAndResize = true;
extraConfig = '' extraConfig = ''
bind v split-window -h -c "#{pane_current_oath}" bind v split-window -h -c "#{pane_current_oath}"

View file

@ -5,10 +5,10 @@
"homepage": null, "homepage": null,
"owner": "mlvzk", "owner": "mlvzk",
"repo": "manix", "repo": "manix",
"rev": "a2eb8111f779903fed3ce8e411dd3e255466ada5", "rev": "01895e6ac53a9d40c6f5f783263f4875924ad712",
"sha256": "03pp4ij0bg9chqlqanymjh7iqcjb46nzbjc5wn5i7gyjfrcz7j54", "sha256": "06cn51h8nab85jk4jfhri3v9kvhb4lpni3qk0mn3dvcw5sg5ri2n",
"type": "tarball", "type": "tarball",
"url": "https://github.com/mlvzk/manix/archive/a2eb8111f779903fed3ce8e411dd3e255466ada5.tar.gz", "url": "https://github.com/mlvzk/manix/archive/01895e6ac53a9d40c6f5f783263f4875924ad712.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"niv": { "niv": {
@ -17,10 +17,10 @@
"homepage": "https://github.com/nmattia/niv", "homepage": "https://github.com/nmattia/niv",
"owner": "nmattia", "owner": "nmattia",
"repo": "niv", "repo": "niv",
"rev": "e82eb322ea32a747a51c431d7787221bcc6d9038", "rev": "89ae775e9dfc2571f912156dd2f8627e14d4d507",
"sha256": "1fy4dcr05d80diwlxmh42xnjm5ki1pkbky38smvlqjaky2y2f71f", "sha256": "0ssw6byyn79fpyzswi28s5b85x66xh4xsfhmcfl5mkdxxpmyy0ns",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nmattia/niv/archive/e82eb322ea32a747a51c431d7787221bcc6d9038.tar.gz", "url": "https://github.com/nmattia/niv/archive/89ae775e9dfc2571f912156dd2f8627e14d4d507.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgs": { "nixpkgs": {
@ -29,10 +29,10 @@
"homepage": null, "homepage": null,
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9319284c1d02e2969bb6340e691e06105e87015f", "rev": "14006b724f3d1f25ecf38238ee723d38b0c2f4ce",
"sha256": "1g3wli01qnbjmf9x2wqfjk65z9h94cglrljpcc0slz5g0g6pjg99", "sha256": "07hfbilyh818pigfn342v2r05n8061wpjaf1m4h291lf6ydjagis",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/9319284c1d02e2969bb6340e691e06105e87015f.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/14006b724f3d1f25ecf38238ee723d38b0c2f4ce.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
} }
} }

View file

@ -1,3 +1,3 @@
self: super: { self: super: {
cool-retro-term = super.callPackage ./cool-retro-term.nix { }; cool-retro-term = super.callPackage ./cool-retro-term.nix {};
} }