move everything around

This commit is contained in:
Adithya 2023-04-04 09:58:29 +05:30
parent 7a466530c1
commit 6584a78556
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
13 changed files with 81 additions and 83 deletions

View file

@ -19,37 +19,15 @@ in
nixvim.homeManagerModules.nixvim
hyprland.homeManagerModules.default
./dev.nix
./downloader.nix
./firefox.nix
./gnome-keyring.nix
./gtk.nix
./media.nix
./misc.nix
./persistence.nix
./scripts.nix
./terminal.nix
./virt-manager.nix
./wm
];
home.packages = with pkgs; [
_1password-gui
brightnessctl
discord
evince
gnome.eog
gnome.gnome-system-monitor
gnome3.gnome-disk-utility
libsecret
pantheon.elementary-files
pavucontrol
xdg-utils
yubioath-flutter
yubikey-manager
yubikey-manager-qt
yubikey-personalization
yubikey-personalization-gui
./programs
./services
];
dconf.settings = {
@ -61,30 +39,6 @@ in
};
};
programs = {
gpg = {
enable = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
};
scdaemonSettings = {
disable-ccid = true;
};
};
ssh = {
enable = true;
};
};
services.blueman-applet.enable = true;
services.gpg-agent = {
enable = true;
enableExtraSocket = true;
enableScDaemon = true;
enableSshSupport = true;
pinentryFlavor = "gnome3";
};
xdg.enable = true;
xdg.mime.enable = true;
xdg.mimeApps.enable = true;

View file

@ -1,3 +0,0 @@
{ pkgs, ... }: {
services.gnome-keyring.enable = true;
}

46
home/programs/default.nix Normal file
View file

@ -0,0 +1,46 @@
{ pkgs, ... }: {
imports = [
./dev.nix
./firefox.nix
./kitty.nix
./nixvim.nix
./tmux.nix
./tui.nix
./virt-manager.nix
];
home.packages = with pkgs; [
_1password-gui
brightnessctl
discord
evince
gnome.eog
gnome.gnome-system-monitor
gnome3.gnome-disk-utility
libsecret
pantheon.elementary-files
pavucontrol
xdg-utils
yubioath-flutter
yubikey-manager
yubikey-manager-qt
yubikey-personalization
yubikey-personalization-gui
];
programs = {
gpg = {
enable = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
};
scdaemonSettings = {
disable-ccid = true;
};
};
ssh = {
enable = true;
};
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
let
user = import ../users/user.nix;
user = import ../../users/user.nix;
in
{
imports = [

View file

@ -1,7 +1,4 @@
{ pkgs
, osConfig
, ...
}: {
{ pkgs, osConfig, ... }: {
programs = {
firefox = {
enable = true;

View file

@ -1,11 +1,4 @@
{ config
, pkgs
, ...
}: {
imports = [
./kitty.nix
./tmux.nix
];
{ config, pkgs, ... }: {
xdg.desktopEntries."btop".name = "btop++";
xdg.desktopEntries."btop".exec = "btop";

View file

@ -5,28 +5,28 @@ let
in
{
xdg.configFile = {
"scripts/chpaper.sh" = {
text = ''
#!/bin/sh
"scripts/chpaper.sh" = {
text = ''
#!/bin/sh
set -eu
set -eu
DIR="''${HOME}/.local/share/wallpapers"
DIR="''${HOME}/.local/share/wallpapers"
random_paper() {
find -L "''${DIR}"/ -type f -regextype egrep -regex ".*\.(jpe?g|png)$" | shuf -n1
}
random_paper() {
find -L "''${DIR}"/ -type f -regextype egrep -regex ".*\.(jpe?g|png)$" | shuf -n1
}
SWAYSOCK="''${SWAYSOCK:-""}"
if [ -z "''${SWAYSOCK}" ] ; then
SWAYSOCK="$(find /run/user/"$(id -u)"/ -name "sway-ipc.$(id -u).*.sock")"
export SWAYSOCK
fi
${pkgs.imagemagick}/bin/convert "$(random_paper)" /tmp/wallpaper.jpg && swaymsg "output * bg '/tmp/wallpaper.jpg' fill" &
${pkgs.imagemagick}/bin/convert "$(random_paper)" /tmp/lockpaper.jpg
'';
executable = true;
};
SWAYSOCK="''${SWAYSOCK:-""}"
if [ -z "''${SWAYSOCK}" ] ; then
SWAYSOCK="$(find /run/user/"$(id -u)"/ -name "sway-ipc.$(id -u).*.sock")"
export SWAYSOCK
fi
${pkgs.imagemagick}/bin/convert "$(random_paper)" /tmp/wallpaper.jpg && swaymsg "output * bg '/tmp/wallpaper.jpg' fill" &
${pkgs.imagemagick}/bin/convert "$(random_paper)" /tmp/lockpaper.jpg
'';
executable = true;
};
"scripts/power_menu.sh" = {
executable = true;
text = ''

11
home/services/default.nix Normal file
View file

@ -0,0 +1,11 @@
{ ... }: {
services.blueman-applet.enable = true;
services.gnome-keyring.enable = true;
services.gpg-agent = {
enable = true;
enableExtraSocket = true;
enableScDaemon = true;
enableSshSupport = true;
pinentryFlavor = "gnome3";
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs , ... }:
{ config, pkgs, ... }:
let
dmenu = "${config.programs.rofi.package}/bin/rofi -dmenu";
firefox = "${config.programs.firefox.package}/bin/firefox";