aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'users/fcuny/desktop')
-rw-r--r--users/fcuny/desktop/browser.nix7
-rw-r--r--users/fcuny/desktop/default.nix20
-rw-r--r--users/fcuny/desktop/gtk.nix36
-rw-r--r--users/fcuny/desktop/i3.nix45
-rw-r--r--users/fcuny/desktop/media.nix15
-rw-r--r--users/fcuny/desktop/pass.nix8
-rw-r--r--users/fcuny/desktop/terminal.nix21
-rw-r--r--users/fcuny/desktop/xdg.nix18
8 files changed, 170 insertions, 0 deletions
diff --git a/users/fcuny/desktop/browser.nix b/users/fcuny/desktop/browser.nix
new file mode 100644
index 0000000..cbd8d29
--- /dev/null
+++ b/users/fcuny/desktop/browser.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }:
+
+{
+ programs.firefox = {
+ enable = true;
+ };
+}
diff --git a/users/fcuny/desktop/default.nix b/users/fcuny/desktop/default.nix
new file mode 100644
index 0000000..9f0bcf3
--- /dev/null
+++ b/users/fcuny/desktop/default.nix
@@ -0,0 +1,20 @@
+{ config, lib, pkgs, ... }:
+
+{
+ imports = [
+ ./browser.nix
+ ./i3.nix
+ ./media.nix
+ ./pass.nix
+ ./terminal.nix
+ ./gtk.nix
+ ./xdg.nix
+ ];
+
+ home.packages = [
+ pkgs.gnome3.eog
+ pkgs.gnome3.evince
+ pkgs.gnome3.nautilus
+ pkgs.transmission-remote-gtk
+ ];
+}
diff --git a/users/fcuny/desktop/gtk.nix b/users/fcuny/desktop/gtk.nix
new file mode 100644
index 0000000..492c331
--- /dev/null
+++ b/users/fcuny/desktop/gtk.nix
@@ -0,0 +1,36 @@
+{ config, lib, pkgs, ... }:
+
+{
+ # This is required for the gtk configuration below
+ home.packages = [
+ pkgs.gnome3.dconf
+ ];
+
+ gtk = {
+ enable = true;
+ theme.name = "Adwaita";
+ iconTheme = {
+ name = "Adwaita";
+ package = pkgs.gnome3.adwaita-icon-theme;
+ };
+
+ gtk2 = {
+ extraConfig = ''
+ gtk-application-prefer-dark-theme = true
+ gtk-xft-antialias = 1
+ gtk-xft-hinting = 1
+ gtk-xft-hintstyle = "hintslight"
+ gtk-cursor-theme-size = cursorSize
+ '';
+ };
+
+ gtk3 = {
+ extraConfig = {
+ gtk-application-prefer-dark-theme = true;
+ gtk-xft-antialias = 1;
+ gtk-xft-hinting = 1;
+ gtk-xft-hintstyle = "hintslight";
+ };
+ };
+ };
+}
diff --git a/users/fcuny/desktop/i3.nix b/users/fcuny/desktop/i3.nix
new file mode 100644
index 0000000..dd01348
--- /dev/null
+++ b/users/fcuny/desktop/i3.nix
@@ -0,0 +1,45 @@
+{ config, pkgs, lib, hostname, ... }:
+let
+ mod = "Mod4";
+in
+{
+ xsession.enable = true;
+
+ xsession.windowManager.i3 = {
+ enable = true;
+ config = {
+ modifier = mod;
+ terminal = "${pkgs.alacritty}/bin/alacritty";
+ window = {
+ titlebar = false;
+ border = 2;
+ };
+ keybindings = lib.mkOptionDefault {
+ "${mod}+r" = "exec --no-startup-id ${pkgs.rofi}/bin/rofi -show drun";
+ "${mod}+l" = "exec ${pkgs.systemd}/bin/loginctl lock-session";
+ };
+ bars = [ ];
+ };
+ };
+
+ programs.rofi = {
+ enable = true;
+ theme = "purple";
+ terminal = "${pkgs.alacritty}/bin/alacritty";
+ extraConfig = {
+ modi = "drun";
+ show-icons = true;
+ combi-modi = "window,drun,ssh";
+ };
+ };
+
+ xdg.configFile."polybar/aptos.ini".source = ../../configs/polybar/aptos.ini;
+ xdg.configFile."polybar/carmel.ini".source = ../../configs/polybar/carmel.ini;
+ xdg.configFile."polybar/modules".source = ../../configs/polybar/modules;
+
+ services.polybar = {
+ enable = true;
+ package = pkgs.polybarFull;
+ script = "polybar --config=${config.xdg.configHome}/polybar/${hostname}.ini -r alone &";
+ };
+}
diff --git a/users/fcuny/desktop/media.nix b/users/fcuny/desktop/media.nix
new file mode 100644
index 0000000..57d0dd2
--- /dev/null
+++ b/users/fcuny/desktop/media.nix
@@ -0,0 +1,15 @@
+{ config, lib, pkgs, ... }:
+
+{
+ home.packages = [
+ pkgs.mpd
+ pkgs.ncmpcpp
+ ];
+
+ xdg.configFile."mpd/mpd.conf".source = ../../configs/mpd/mpd.conf;
+ xdg.configFile."ncmpcpp/config".source = ../../configs/ncmpcpp/config;
+
+ services.mpd = {
+ enable = true;
+ };
+}
diff --git a/users/fcuny/desktop/pass.nix b/users/fcuny/desktop/pass.nix
new file mode 100644
index 0000000..d430ec8
--- /dev/null
+++ b/users/fcuny/desktop/pass.nix
@@ -0,0 +1,8 @@
+{ pkgs, config, ... }:
+
+{
+ programs.password-store.enable = true;
+
+ programs.password-store.settings.PASSWORD_STORE_DIR =
+ "${config.xdg.dataHome}/password-store";
+}
diff --git a/users/fcuny/desktop/terminal.nix b/users/fcuny/desktop/terminal.nix
new file mode 100644
index 0000000..ca3b2e8
--- /dev/null
+++ b/users/fcuny/desktop/terminal.nix
@@ -0,0 +1,21 @@
+{ config, pkgs, lib, ...}:
+
+{
+ programs.alacritty = {
+ enable = true;
+
+ settings = {
+ env = {
+ TERM = "xterm-256color";
+ WINIT_X11_SCALE_FACTOR = "1.2";
+ };
+ draw_bold_text_with_bright_colors = true;
+ selection = {
+ save_to_clipboard = true;
+ };
+ font = {
+ size = 12;
+ };
+ };
+ };
+}
diff --git a/users/fcuny/desktop/xdg.nix b/users/fcuny/desktop/xdg.nix
new file mode 100644
index 0000000..7390811
--- /dev/null
+++ b/users/fcuny/desktop/xdg.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+
+{
+ xdg.enable = true;
+
+ xdg.userDirs = {
+ enable = true;
+ createDirectories = true;
+ desktop = "\$HOME/documents";
+ documents = "\$HOME/documents";
+ download = "\$HOME/downloads";
+ music = "\$HOME/media/music";
+ pictures = "\$HOME/media/pictures";
+ publicShare = "\$HOME/documents/public";
+ templates = "\$HOME/documents/templates";
+ videos = "\$HOME/media/videos";
+ };
+}