mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
More gnome settings
This commit is contained in:
@@ -6,34 +6,40 @@
|
|||||||
}: let
|
}: let
|
||||||
wallpaper = pkgs.writeShellScriptBin "wallpaper" (builtins.readFile ./wallpaper.sh);
|
wallpaper = pkgs.writeShellScriptBin "wallpaper" (builtins.readFile ./wallpaper.sh);
|
||||||
in {
|
in {
|
||||||
dconf.settings = {
|
dconf.settings = with lib.hm.gvariant; {
|
||||||
"org/gnome/shell" = {
|
"org/gnome/shell" = {
|
||||||
disable-user-extensions = false;
|
disable-user-extensions = false;
|
||||||
enabled-extensions = [
|
enabled-extensions = [
|
||||||
"forge@jmmaranan.com"
|
"forge@jmmaranan.com"
|
||||||
"blur-my-shell@aunetx"
|
# Waiting for https://github.com/aunetx/blur-my-shell/issues/388
|
||||||
|
# "blur-my-shell@aunetx"
|
||||||
"launch-new-instance@gnome-shell-extensions.gcampax.github.com"
|
"launch-new-instance@gnome-shell-extensions.gcampax.github.com"
|
||||||
# "just-perfection-desktop@just-perfection"
|
|
||||||
"rounded-window-corners@yilozt.shell-extension.zip"
|
"rounded-window-corners@yilozt.shell-extension.zip"
|
||||||
# Disable while not configured
|
# Disable while not configured
|
||||||
# "widgets@aylur"
|
# "widgets@aylur"
|
||||||
|
# "just-perfection-desktop@just-perfection"
|
||||||
];
|
];
|
||||||
welcome-dialog-last-shown-version = 999999;
|
welcome-dialog-last-shown-version = 999999;
|
||||||
};
|
};
|
||||||
|
|
||||||
"org/gnome/desktop/wm/preferences" = {
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
auto-raise = true;
|
auto-raise = true;
|
||||||
|
num-workspaces=9;
|
||||||
};
|
};
|
||||||
# "org/gnome/shell/extensions/just-perfection" = {
|
# "org/gnome/shell/extensions/just-perfection" = {
|
||||||
# activities-button = false;
|
# activities-button = false;
|
||||||
# startup-status = 0;
|
# startup-status = 0;
|
||||||
# dash = false;
|
# dash = false;
|
||||||
# };
|
# };
|
||||||
"org/gnome/shell/world-clocks" = {
|
# "org/gnome/shell/world-clocks" = {
|
||||||
# locations = "[<(uint32 2, <('Nantes', 'LFRS', true, [(0.82321363634175626, -0.027925268031909273)], [(0.82408630096775348, -0.027052603405912107)])>)>]";
|
# locations = "[<(uint32 2, <('Nantes', 'LFRS', true, [(0.82321363634175626, -0.027925268031909273)], [(0.82408630096775348, -0.027052603405912107)])>)>]";
|
||||||
};
|
# };
|
||||||
|
# "org/gnome/Weather" = {
|
||||||
|
# locations = "[<(uint32 2, <('Tokyo', 'RJTI', true, [(0.62191898430954862, 2.4408429589140699)], [(0.62282074357417661, 2.4391218722853854)])>)>]";
|
||||||
|
# };
|
||||||
"org/gnome/shell/weather" = {
|
"org/gnome/shell/weather" = {
|
||||||
automatic-location = true;
|
automatic-location = true;
|
||||||
|
# locations = "[<(uint32 2, <('Tokyo', 'RJTI', true, [(0.62191898430954862, 2.4408429589140699)], [(0.62282074357417661, 2.4391218722853854)])>)>]";
|
||||||
};
|
};
|
||||||
"org/gnome/desktop/peripherals/touchpad" = {
|
"org/gnome/desktop/peripherals/touchpad" = {
|
||||||
tap-to-click = true;
|
tap-to-click = true;
|
||||||
@@ -43,8 +49,8 @@ in {
|
|||||||
};
|
};
|
||||||
"org/gnome/mutter" = {
|
"org/gnome/mutter" = {
|
||||||
experimental-features = ["scale-monitor-framebuffer"];
|
experimental-features = ["scale-monitor-framebuffer"];
|
||||||
# It does not work but I don't really care.
|
overlay-key = "";
|
||||||
overlay-key = "<Super> ";
|
workspaces-only-on-primary=true;
|
||||||
};
|
};
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
scaling-factor = 1.5;
|
scaling-factor = 1.5;
|
||||||
@@ -52,8 +58,15 @@ in {
|
|||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
enable-hot-corners = false;
|
enable-hot-corners = false;
|
||||||
clock-show-weekday = true;
|
clock-show-weekday = true;
|
||||||
|
show-battery-percentage = true;
|
||||||
};
|
};
|
||||||
|
# "org/gnome/desktop/background" = {
|
||||||
|
# picture-uri = "file:///home/zoriya/.cache/current-wallpaper";
|
||||||
|
# picture-uri-dark = "file:///home/zoriya/.cache/current-wallpaper";
|
||||||
|
# };
|
||||||
"org/gnome/desktop/input-sources" = {
|
"org/gnome/desktop/input-sources" = {
|
||||||
|
mru-sources = [ (mkTuple [ "xkb" "us" ]) (mkTuple [ "ibus" "mozc-jp" ]) ];
|
||||||
|
sources = [ (mkTuple [ "xkb" "us" ]) (mkTuple [ "ibus" "mozc-jp" ]) ];
|
||||||
xkb-options = ["terminate:ctrl_alt_bksp" "caps:swapescape"];
|
xkb-options = ["terminate:ctrl_alt_bksp" "caps:swapescape"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -86,12 +99,12 @@ in {
|
|||||||
wallpaper
|
wallpaper
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."autostart/wallpaper.desktop".text = ''
|
# xdg.configFile."autostart/wallpaper.desktop".text = ''
|
||||||
[Desktop Entry]
|
# [Desktop Entry]
|
||||||
Type=Application
|
# Type=Application
|
||||||
Name=Wallpapers
|
# Name=Wallpapers
|
||||||
Exec=wp
|
# Exec=wp
|
||||||
OnlyShowIn=GNOME;
|
# OnlyShowIn=GNOME;
|
||||||
'';
|
# '';
|
||||||
xdg.configFile."autostart/discord.desktop".text = pkgs.discord.desktopItem.text;
|
xdg.configFile."autostart/discord.desktop".text = pkgs.discord.desktopItem.text;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
WALLPAPERS=~/wallpapers/
|
WALLPAPERS=~/wallpapers/
|
||||||
export SWWW_TRANSITION_FPS=90
|
|
||||||
export SWWW_TRANSITION_STEP=90
|
|
||||||
export SWWW_TRANSITION_DURATION=2
|
|
||||||
export SWWW_TRANSITION=grow
|
|
||||||
|
|
||||||
WP=$(find $WALLPAPERS -type f | shuf -n 1)
|
WP=$(find $WALLPAPERS -type f | shuf -n 1)
|
||||||
ln -fs $WP ~/.cache/current-wallpaper
|
ln -fs $WP ~/.cache/current-wallpaper
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ in {
|
|||||||
pictures = "${config.home.homeDirectory}/stuff";
|
pictures = "${config.home.homeDirectory}/stuff";
|
||||||
publicShare = "${config.home.homeDirectory}/stuff";
|
publicShare = "${config.home.homeDirectory}/stuff";
|
||||||
};
|
};
|
||||||
|
home.file.".face".source = ../../../face.png;
|
||||||
|
|
||||||
xdg.configFile."nixpkgs/config.nix".text = ''
|
xdg.configFile."nixpkgs/config.nix".text = ''
|
||||||
{ allowUnfree = true; }
|
{ allowUnfree = true; }
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ in {
|
|||||||
"downloads"
|
"downloads"
|
||||||
"stuff"
|
"stuff"
|
||||||
"projects"
|
"projects"
|
||||||
"wallpapers"
|
|
||||||
{ directory = ".gnupg"; mode = "0700"; }
|
{ directory = ".gnupg"; mode = "0700"; }
|
||||||
{ directory = ".ssh"; mode = "0700"; }
|
{ directory = ".ssh"; mode = "0700"; }
|
||||||
".local/share/direnv"
|
".local/share/direnv"
|
||||||
@@ -67,5 +66,11 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/zoriya/wallpapers" = {
|
||||||
|
device = "/home/zoriya/projects/flake/wallpapers/";
|
||||||
|
fsType = "none";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,16 +31,5 @@ in {
|
|||||||
security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
Defaults lecture="never"
|
Defaults lecture="never"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelParams = ["quiet" "splash"];
|
|
||||||
consoleLogLevel = 0;
|
|
||||||
initrd.verbose = false;
|
|
||||||
plymouth = {
|
|
||||||
enable = true;
|
|
||||||
themePackages = [pkgs.adi1090x-plymouth];
|
|
||||||
theme = "colorful_loop";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
pkgs.stdenv.mkDerivation {
|
|
||||||
pname = "adi1090x-plymouth";
|
|
||||||
version = "0.0.1";
|
|
||||||
|
|
||||||
src = builtins.fetchGit {
|
|
||||||
url = "https://github.com/adi1090x/plymouth-themes";
|
|
||||||
rev = "bf2f570bee8e84c5c20caac353cbe1d811a4745f";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
pkgs.git
|
|
||||||
];
|
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
mkdir -p $out/share/plymouth/themes/
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
cp -r pack_1/colorful_loop $out/share/plymouth/themes
|
|
||||||
cat pack_1/colorful_loop/colorful_loop.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/colorful_loop/colorful_loop.plymouth
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
self: super: {
|
self: super: {
|
||||||
adi1090x-plymouth = super.callPackage ./adi1090x-plymouth.nix {};
|
|
||||||
tuxedo-keyboard = super.callPackage ./tuxedo-keyboard {};
|
tuxedo-keyboard = super.callPackage ./tuxedo-keyboard {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user