Skip to content

Commit

Permalink
rolling update in 20241007
Browse files Browse the repository at this point in the history
Signed-off-by: iosmanthus <[email protected]>
  • Loading branch information
iosmanthus committed Oct 7, 2024
1 parent 7c0d744 commit dd1604c
Show file tree
Hide file tree
Showing 17 changed files with 129 additions and 99 deletions.
46 changes: 23 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "God does not play dice";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/954e8210477d1d22cfaebebcfae9fa86e254e3a0";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";

master.url = "github:NixOS/nixpkgs";

Expand Down
2 changes: 1 addition & 1 deletion nixos/iosmanthus-xps/monitors.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in
};
};
services.autorandr = {
enable = true;
enable = false;
profiles = {
default = {
fingerprint = {
Expand Down
7 changes: 6 additions & 1 deletion nixos/workstation/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,19 @@

hardware = {
enableAllFirmware = true;
pulseaudio.enable = true;
pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
alsa.enablePersistence = true;
bluetooth = {
enable = true;
powerOnBoot = true;
};
};

services.pipewire.enable = false;

virtualisation = {
docker = {
enable = true;
Expand Down
31 changes: 30 additions & 1 deletion nixos/workstation/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,24 @@
};
};

environment.xfce.excludePackages = with pkgs.xfce; [
xfce4-notifyd
xfce4-volumed-pulse
];

environment.systemPackages = with pkgs.xfce // pkgs; [
xfce4-panel
xfwm4

xfce4-systemload-plugin
xfce4-netload-plugin
xfce4-pulseaudio-plugin
xfce4-volumed-pulse
xfce4-sensors-plugin
];

services.displayManager = {
defaultSession = "none+i3";
defaultSession = "xfce+i3";
};

services.xserver = {
Expand All @@ -36,6 +52,14 @@
xkb.layout = "us";
autoRepeatInterval = 20;
autoRepeatDelay = 200;
desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
displayManager.lightdm = {
enable = true;
background = config.wallpaper.package.gnomeFilePath;
Expand All @@ -46,6 +70,10 @@
name = "Yaru";
size = 48;
};
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus";
};
theme = config.gtk.globalTheme;
indicators = [
"~host"
Expand All @@ -58,6 +86,7 @@
extraConfig = ''
xft-dpi=192
font-name=sans-serif
user-background=false
'';
};
};
Expand Down
2 changes: 1 addition & 1 deletion nixos/workstation/desktop/monitors.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ in
};

services.autorandr = {
enable = true;
enable = false;
inherit hooks;
profiles =
mkProfile {
Expand Down
16 changes: 4 additions & 12 deletions nixos/workstation/home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
feishu
flameshot
flyctl
follow
fzf
gedit
geoipWithDatabase
gh
gnome-font-viewer
gnome-clocks
gnome-font-viewer
go-musicfox
go-tools
google-cloud-sdk
Expand All @@ -65,6 +66,7 @@
networkmanagerapplet
nix-output-monitor
nnn
nur.repos.linyinfeng.wemeet
pavucontrol
peek
pgcli
Expand Down Expand Up @@ -95,8 +97,6 @@
xxd
yesplaymusic
zoom-us
nur.repos.linyinfeng.wemeet
follow
(wechat-uos.override {
uosLicense = builtins.fetchurl {
url = "https://github.com/archlinux/aur/raw/6e9a4ad47ff090ecd98170e26bd55219e55109fc/license.tar.gz";
Expand Down Expand Up @@ -135,16 +135,8 @@

home.activation = {
createGoPath = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
$DRY_RUN_CMD mkdir -p $VERBOSE_ARG $HOME/.go
run mkdir -p $VERBOSE_ARG $HOME/.go
'';

restartSopsNix = lib.hm.dag.entryAfter [ "reloadSystemd" ] ''
(
if ${pkgs.systemd}/bin/systemctl --user list-unit-files | grep -q sops-nix.service; then
echo "restart sops-nix.service"
$DRY_RUN_CMD ${pkgs.systemd}/bin/systemctl --user restart sops-nix.service
fi
)'';
};

home.keyboard.options = [ "caps:escape" ];
Expand Down
5 changes: 3 additions & 2 deletions nixos/workstation/home/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
imports = [
./i3.nix
./xfce.nix
./dunst.nix
];

Expand All @@ -20,8 +21,8 @@
gtk = {
enable = true;
iconTheme = {
package = pkgs.tela-icon-theme;
name = "Tela";
package = pkgs.papirus-icon-theme;
name = "Papirus-Dark";
};
theme = config.gtk.globalTheme;
};
Expand Down
4 changes: 2 additions & 2 deletions nixos/workstation/home/desktop/dunst.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ in
};

iconTheme = {
name = "Tela";
package = pkgs.tela-icon-theme;
package = pkgs.papirus-icon-theme;
name = "Papirus-Dark";
size = "32x32";
};
};
Expand Down
33 changes: 13 additions & 20 deletions nixos/workstation/home/desktop/i3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
let
modifier0 = "Mod4";
modifier1 = "Mod1";
betterlockscreen = "${pkgs.betterlockscreen}/bin/betterlockscreen";
colors = config.scheme.withHashtag;
i3 = {
enable = true;
Expand Down Expand Up @@ -100,12 +99,10 @@ let
"${modifier0}+Shift+k" = "move up";

"${modifier0}+Shift+q" = "exec i3-msg restart";
"${modifier0}+Shift+x" = ''
exec ${betterlockscreen} -l dim
'';
"${modifier0}+Shift+x" = "exec xflock4";
"${modifier0}+c" = "exec env CM_LAUNCHER=rofi clipmenu";
"${modifier0}+m" = "exec autorandr --change";
"${modifier0}+w" = "exec brave";
"${modifier0}+m" = "exec xfce4-display-settings -m";
"${modifier0}+w" = "exec firefox-nightly";
"${modifier0}+p" = "exec rofi -show combi";
"${modifier0}+d" = "exec Discord";
"${modifier0}+t" = "exec telegram-desktop";
Expand All @@ -114,7 +111,7 @@ let
"${modifier0}+Shift+n" = "exec dunstctl close-all";
"${modifier0}+g" = "exec gedit";
"${modifier0}+space" = "exec wmfocus";
"${modifier0}+b" = "exec polybar-msg cmd toggle";
# "${modifier0}+b" = "exec polybar-msg cmd toggle";

# Disable tiling_drag before there is a threshold for it.
"button1" = "focus";
Expand Down Expand Up @@ -156,9 +153,10 @@ let
{ class = "^firefox-nightly$"; }
{ class = "^Brave-browser$"; }
{ class = "^logseq$"; }
{ class = "^kitty$"; }
];
"2: chat" = [
{ class = "^Discord$"; }
{ class = "^discord$"; }
{ class = "^TelegramDesktop$"; }
];
"3: mail" = [ { class = "^thunderbird$"; } ];
Expand All @@ -174,23 +172,15 @@ let
command = "feh --bg-scale --conversion-timeout 1 ~/.background-image";
always = true;
}
{
command = "${betterlockscreen} -u ~/.background-image --fx dim,pixel";
always = true;
}
{
command = "systemctl restart --user polybar.service";
always = true;
}
{
command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
always = true;
}
{ command = "i3-msg workspace 1: main"; }
{ command = "firefox-nightly"; }
{ command = "logseq"; }
{ command = "kitty tmux"; }
{ command = "thunderbird"; }
# {
# command = "systemctl restart --user polybar.service";
# always = true;
# }
];
bars = lib.mkForce [ ];
};
Expand Down Expand Up @@ -226,6 +216,9 @@ in
{
xsession = {
enable = true;
initExtra = ''
${pkgs.runtimeShell} ${pkgs.xfce.xfce4-session.xinitrc} &
'';
windowManager = {
inherit i3;
};
Expand Down
9 changes: 9 additions & 0 deletions nixos/workstation/home/desktop/xfce.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ ... }:
{
xfconf.settings = {
keyboards = {
"Default/KeyRepeat/Delay" = 200;
"Default/KeyRepeat/Rate" = 50;
};
};
}
Loading

0 comments on commit dd1604c

Please sign in to comment.