Refactor, fix gnome dconf errors, start ghostty config
This commit is contained in:
parent
23402f4716
commit
43e72e2413
12 changed files with 117 additions and 79 deletions
|
|
@ -179,7 +179,7 @@
|
||||||
# "@lyes.eu" = "lyes@mail.lyes.eu";
|
# "@lyes.eu" = "lyes@mail.lyes.eu";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
certificateScheme = "acme-nginx";
|
# certificateScheme = "acme-nginx";
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.dovecot2.extraConfig = ''
|
# services.dovecot2.extraConfig = ''
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ stdenvNoCC.mkDerivation {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Amelia's Amy Mono font";
|
description = "Amélia's Amy Mono font";
|
||||||
homepage = "https://www.ameliathe1st.gay/";
|
homepage = "https://www.ameliathe1st.gay/";
|
||||||
license = lib.licenses.ofl; # As per our personal messages
|
license = lib.licenses.ofl; # As per our personal messages
|
||||||
platforms = lib.platforms.all;
|
platforms = lib.platforms.all;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
home-manager.users.lyes = { ... }: {
|
home-manager.users.lyes = { ... }: {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./home.nix
|
./home
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
8
users/lyes/desktop/home/apps/default.nix
Normal file
8
users/lyes/desktop/home/apps/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./ghostty.nix
|
||||||
|
./mpd.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
16
users/lyes/desktop/home/apps/ghostty.nix
Normal file
16
users/lyes/desktop/home/apps/ghostty.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.ghostty = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
installBatSyntax = true;
|
||||||
|
|
||||||
|
systemd.enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
theme = "Rose Pine Moon";
|
||||||
|
font-family = "JetBrains Mono";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
25
users/lyes/desktop/home/apps/mpd.nix
Normal file
25
users/lyes/desktop/home/apps/mpd.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# MPD
|
||||||
|
services.mpd = {
|
||||||
|
enable = true;
|
||||||
|
musicDirectory = "${config.xdg.userDirs.music}/MPD";
|
||||||
|
extraConfig =
|
||||||
|
''
|
||||||
|
audio_output {
|
||||||
|
type "pipewire"
|
||||||
|
name "PipeWire Sound Server"
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "fifo"
|
||||||
|
name "mpd"
|
||||||
|
path "~/.local/share/mpd/.mpd_fifo"
|
||||||
|
format "44100:16:2"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.mpd-mpris.enable = true;
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
27
users/lyes/desktop/home/default.nix
Normal file
27
users/lyes/desktop/home/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./apps
|
||||||
|
./desktops
|
||||||
|
./xdg.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Cursor
|
||||||
|
home.pointerCursor = {
|
||||||
|
enable = true;
|
||||||
|
name = "Adwaita";
|
||||||
|
package = pkgs.adwaita-icon-theme;
|
||||||
|
size = 24;
|
||||||
|
x11 = {
|
||||||
|
enable = true;
|
||||||
|
defaultCursor = "Adwaita";
|
||||||
|
};
|
||||||
|
dotIcons.enable = true;
|
||||||
|
gtk.enable = true;
|
||||||
|
sway.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Background
|
||||||
|
xdg.configFile."background".source = ./background;
|
||||||
|
}
|
||||||
8
users/lyes/desktop/home/desktops/default.nix
Normal file
8
users/lyes/desktop/home/desktops/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./gnome.nix
|
||||||
|
./sway.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,26 @@
|
||||||
{ lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib.hm.gvariant;
|
with lib.hm.gvariant;
|
||||||
|
|
||||||
|
let
|
||||||
|
extensions = with pkgs.gnomeExtensions; [
|
||||||
|
# appindicator
|
||||||
|
blur-my-shell
|
||||||
|
caffeine
|
||||||
|
dash-to-panel
|
||||||
|
gsconnect
|
||||||
|
just-perfection
|
||||||
|
vitals
|
||||||
|
weather-oclock
|
||||||
|
background-logo
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
programs.gnome-shell = {
|
||||||
|
enable = true;
|
||||||
|
extensions = map (x: { id = x.extensionUuid; package = x; }) extensions;
|
||||||
|
};
|
||||||
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
# Gnome Settings
|
# Gnome Settings
|
||||||
|
|
||||||
|
|
@ -90,32 +108,32 @@ with lib.hm.gvariant;
|
||||||
};
|
};
|
||||||
|
|
||||||
## Extensions settings
|
## Extensions settings
|
||||||
"blur-my-shell" = {
|
"org/gnome/shell/extensions/blur-my-shell" = {
|
||||||
settings-version = 2;
|
settings-version = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
"blur-my-shell/coverflow-alt-tab" = {
|
"org/gnome/shell/extensions/blur-my-shell/coverflow-alt-tab" = {
|
||||||
pipeline = "pipeline_default";
|
pipeline = "pipeline_default";
|
||||||
};
|
};
|
||||||
|
|
||||||
"blur-my-shell/dash-to-dock" = {
|
"org/gnome/shell/extensions/blur-my-shell/dash-to-dock" = {
|
||||||
pipeline = "pipeline_default_rounded";
|
pipeline = "pipeline_default_rounded";
|
||||||
};
|
};
|
||||||
|
|
||||||
"blur-my-shell/lockscreen" = {
|
"org/gnome/shell/extensions/blur-my-shell/lockscreen" = {
|
||||||
pipeline = "pipeline_default";
|
pipeline = "pipeline_default";
|
||||||
};
|
};
|
||||||
|
|
||||||
"blur-my-shell/overview" = {
|
"org/gnome/shell/extensions/blur-my-shell/overview" = {
|
||||||
pipeline = "pipeline_default";
|
pipeline = "pipeline_default";
|
||||||
};
|
};
|
||||||
|
|
||||||
"blur-my-shell/panel" = {
|
"org/gnome/shell/extensions/blur-my-shell/panel" = {
|
||||||
pipeline = "pipeline_default";
|
pipeline = "pipeline_default";
|
||||||
static-blur = false;
|
static-blur = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
"blur-my-shell/screenshot" = {
|
"org/gnome/shell/extensions/blur-my-shell/screenshot" = {
|
||||||
pipeline = "pipeline_default";
|
pipeline = "pipeline_default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -123,7 +141,7 @@ with lib.hm.gvariant;
|
||||||
show-notifications = false;
|
show-notifications = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
"dash-to-panel" = {
|
"org/gnome/shell/extensions/dash-to-panel" = {
|
||||||
# animate-appicon-hover-animation-extent = {
|
# animate-appicon-hover-animation-extent = {
|
||||||
# RIPPLE = 4;
|
# RIPPLE = 4;
|
||||||
# PLANK = 4;
|
# PLANK = 4;
|
||||||
|
|
@ -177,7 +195,7 @@ with lib.hm.gvariant;
|
||||||
window-preview-title-position = "TOP";
|
window-preview-title-position = "TOP";
|
||||||
};
|
};
|
||||||
|
|
||||||
"just-perfection" = {
|
"org/gnome/shell/extensions/just-perfection" = {
|
||||||
notification-banner-position = 3;
|
notification-banner-position = 3;
|
||||||
osd-position = 6;
|
osd-position = 6;
|
||||||
support-notifier-showed-version = 34;
|
support-notifier-showed-version = 34;
|
||||||
|
|
@ -190,7 +208,7 @@ with lib.hm.gvariant;
|
||||||
show-gpu = true;
|
show-gpu = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"weather-oclock" = {
|
"org/gnome/shell/extensions/weather-oclock" = {
|
||||||
weather-after-clock = true;
|
weather-after-clock = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1,24 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
extensions = with pkgs.gnomeExtensions; [
|
|
||||||
# appindicator
|
|
||||||
blur-my-shell
|
|
||||||
caffeine
|
|
||||||
dash-to-panel
|
|
||||||
gsconnect
|
|
||||||
just-perfection
|
|
||||||
vitals
|
|
||||||
weather-oclock
|
|
||||||
background-logo
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./dconf.nix
|
|
||||||
./sway.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
xdg = {
|
xdg = {
|
||||||
userDirs = {
|
userDirs = {
|
||||||
|
|
@ -95,50 +77,4 @@ in
|
||||||
"x-scheme-handler/chrome" = "firefox.desktop";
|
"x-scheme-handler/chrome" = "firefox.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Desktop
|
|
||||||
programs.gnome-shell = {
|
|
||||||
enable = true;
|
|
||||||
extensions = map (x: { id = x.extensionUuid; package = x; }) extensions;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Cursor
|
|
||||||
home.pointerCursor = {
|
|
||||||
enable = true;
|
|
||||||
name = "Adwaita";
|
|
||||||
package = pkgs.adwaita-icon-theme;
|
|
||||||
size = 24;
|
|
||||||
x11 = {
|
|
||||||
enable = true;
|
|
||||||
defaultCursor = "Adwaita";
|
|
||||||
};
|
|
||||||
dotIcons.enable = true;
|
|
||||||
gtk.enable = true;
|
|
||||||
sway.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Background
|
|
||||||
xdg.configFile."background".source = ./background;
|
|
||||||
|
|
||||||
# MPD
|
|
||||||
services.mpd = {
|
|
||||||
enable = true;
|
|
||||||
musicDirectory = "${config.xdg.userDirs.music}/MPD";
|
|
||||||
extraConfig =
|
|
||||||
''
|
|
||||||
audio_output {
|
|
||||||
type "pipewire"
|
|
||||||
name "PipeWire Sound Server"
|
|
||||||
}
|
|
||||||
|
|
||||||
audio_output {
|
|
||||||
type "fifo"
|
|
||||||
name "mpd"
|
|
||||||
path "~/.local/share/mpd/.mpd_fifo"
|
|
||||||
format "44100:16:2"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.mpd-mpris.enable = true;
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue