aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdam0 <me@kumardamani.net>2023-04-29 16:57:08 +0000
committerkdam0 <me@kumardamani.net>2023-04-29 16:57:08 +0000
commitcef3a6420a40090bd191be4d84ce78b18806a17c (patch)
tree5d922161bdc5f38d61a2726e9a4bcc617e904137
parent564fd1917c8235b7fc45217bf31512ab4244f729 (diff)
fixes updates
-rwxr-xr-xnixpkgs/.config/nixpkgs/common/bg.sh2
-rw-r--r--nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix5
-rw-r--r--nixpkgs/.config/nixpkgs/per-user/kdam0-home/hardware-configuration.nix2
-rw-r--r--nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix78
4 files changed, 83 insertions, 4 deletions
diff --git a/nixpkgs/.config/nixpkgs/common/bg.sh b/nixpkgs/.config/nixpkgs/common/bg.sh
index 8e4d6d5..9bac47e 100755
--- a/nixpkgs/.config/nixpkgs/common/bg.sh
+++ b/nixpkgs/.config/nixpkgs/common/bg.sh
@@ -1,4 +1,4 @@
-#!/bin/env bash
+#!/usr/bin/env bash
pkill wbg || echo "No wbg process was running."
diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix
index bca44d7..406e5bf 100644
--- a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix
+++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix
@@ -39,7 +39,7 @@
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
- media-session.enable = false;
+ # media-session.enable = false;
jack.enable = true;
systemWide = false;
};
@@ -115,8 +115,11 @@
services.fwupd.enable = true;
services.blueman.enable = true;
security.pam.services = {
+ swaylock = {};
waylock = {};
login.gnupg.enable = true;
};
+
+ programs.zsh.enable = true;
}
diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/hardware-configuration.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/hardware-configuration.nix
index 7911403..b0b9748 100644
--- a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/hardware-configuration.nix
+++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/hardware-configuration.nix
@@ -38,5 +38,5 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display
- hardware.video.hidpi.enable = lib.mkDefault true;
+ # hardware.video.hidpi.enable = lib.mkDefault true;
}
diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix
index f54ff58..55340a6 100644
--- a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix
+++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix
@@ -50,6 +50,61 @@
};
};
+ programs.neovim = {
+ enable = true;
+ withPython3 = false;
+ withRuby = true;
+ withNodeJs = true;
+ vimdiffAlias = true;
+ plugins = with pkgs.vimPlugins; [
+ tokyonight-nvim
+ nvim-treesitter.withAllGrammars
+ nvim-autopairs
+ nvim-cmp
+ nvim-web-devicons
+ nnn-vim
+ luasnip
+ cmp_luasnip
+ cmp-nvim-lsp
+ friendly-snippets
+ {
+ plugin = indent-blankline-nvim-lua;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/indent-blankline.lua);
+ }
+ {
+ plugin = lualine-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/lualine.lua);
+ }
+ {
+ plugin = trouble-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/trouble.lua);
+ }
+ {
+ plugin = telescope-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/telescope.lua);
+ }
+ telescope-fzf-native-nvim
+ {
+ plugin = leap-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/leap.lua);
+ }
+ mason-nvim
+ mason-lspconfig-nvim
+ neoconf-nvim
+ {
+ plugin = nvim-lspconfig;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/lspconfig.lua);
+ }
+ ];
+ extraConfig = builtins.readFile ../../common/nvim/init.vim;
+ };
+
home.stateVersion = "22.11";
home.packages = [
@@ -70,7 +125,7 @@
pkgs.polkit
pkgs.light
pkgs.wbg
- pkgs.waylock
+ pkgs.swaylock
# Browsers
pkgs.firefox
pkgs.brave
@@ -155,6 +210,20 @@
};
Install.WantedBy = ["multi-user.target"];
};
+ bg-wallpaper = {
+ Unit = {
+ Description = "Auto refresh wallpaper";
+ After = "network-online.target";
+ };
+ Service = {
+ Type = "simple";
+ ExecStart = "${config.home.homeDirectory}/bg.sh";
+ TimeoutStopSec = "10";
+ KillMode = "process";
+ KillSignal = "SIGKILL";
+ };
+ Install.WantedBy = ["multi-user.target"];
+ };
};
systemd.user.timers = {
@@ -164,6 +233,13 @@
Install.WantedBy = ["multi-user.target" "timers.target"];
};
};
+ systemd.user.timers = {
+ bg-wallpaper = {
+ Unit.Description = "Automatic update of wallpaper";
+ Timer.OnUnitActiveSec = "10min";
+ Install.WantedBy = ["multi-user.target" "timers.target"];
+ };
+ };
systemd.user.startServices = true;
# Source app specific configs