continue improvement

This commit is contained in:
Sense T 2023-06-27 10:44:31 +08:00
parent 5e6f72d38f
commit c191d80985
10 changed files with 60 additions and 63 deletions

View File

@ -14,6 +14,7 @@ nixos-rebuild switch --flake 'git+https://git.sense-t.eu.org/NixOS/gpd-configura
- [ ] wsproxy on podman - [ ] wsproxy on podman
- [ ] waybar 微调 - [ ] waybar 微调
- [ ] 使用 pipewire - [ ] 使用 pipewire
- [ ] 电源选项 - [x] 电源选项
- [x] hyprland 微调 - [x] hyprland 微调
- [ ] nwg-launchers 微调+配置 - [ ] nwg-launchers 微调+配置
- [ ] [HMCL](https://gitlab.com/accessable-net/hmcl-flatpak)

View File

@ -8,6 +8,7 @@
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" # 清华 "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" # 清华
"https://mirrors.bfsu.edu.cn/nix-channels/store" # 北外 "https://mirrors.bfsu.edu.cn/nix-channels/store" # 北外
"https://mirror.sjtu.edu.cn/nix-channels/store" # 交大 "https://mirror.sjtu.edu.cn/nix-channels/store" # 交大
"https://nixos-cn.cachix.org"
"https://cache.nixos.org/" "https://cache.nixos.org/"
]; ];
@ -40,6 +41,14 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = system; system = system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [
(self: super: {
waybar = super.waybar.overrideAttrs (oldAttrs: {
# enable hyprland support
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
})
];
}; };
cn-pkgs = import nixos-cn { cn-pkgs = import nixos-cn {
@ -51,6 +60,8 @@
modules = [ modules = [
./configuration.nix ./configuration.nix
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
nixos-cn.nixosModules.nixos-cn-registries
nixos-cn.nixosModules.nixos-cn
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;

View File

@ -11,6 +11,7 @@
fira-code-symbols fira-code-symbols
source-han-sans source-han-sans
source-han-serif source-han-serif
source-han-mono
source-code-pro source-code-pro
font-awesome_5 font-awesome_5
powerline-fonts powerline-fonts
@ -22,16 +23,16 @@
fontconfig.defaultFonts = { fontconfig.defaultFonts = {
serif = [ serif = [
"Source Han Serif" "Source Han Serif SC"
]; ];
sansSerif = [ sansSerif = [
"Source Han Sans" "Source Han Sans SC"
]; ];
monospace = [ monospace = [
"Fira Code" "Fira Code"
"Source Han Serif SC" "Source Han Mono SC"
]; ];
}; };
}; };

View File

@ -6,6 +6,11 @@
# Enable automatic login for the user. # Enable automatic login for the user.
services = { services = {
# flatpak dev.deedles.Trayscale
# sudo tailscale up --operator=$USER
# use https://hs.wetofu.me
tailscale.enable = true;
blueman.enable = true;
logrotate.checkConfig = false; logrotate.checkConfig = false;
flatpak.enable = true; flatpak.enable = true;
@ -56,5 +61,6 @@
git.enable = true; git.enable = true;
zsh.enable = true; zsh.enable = true;
light.enable = true;
}; };
} }

View File

@ -9,6 +9,8 @@
"networkmanager" "networkmanager"
"wheel" "wheel"
"input" "input"
"video"
"kvm"
]; ];
hashedPassword = ""; # Login directly hashedPassword = ""; # Login directly
shell = pkgs.zsh; shell = pkgs.zsh;

View File

@ -13,12 +13,6 @@
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "tmpfs";
fsType = "tmpfs";
options = [ "relatime" "mode=755" ];
};
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8095-BE1B"; device = "/dev/disk/by-uuid/8095-BE1B";
fsType = "vfat"; fsType = "vfat";

View File

@ -3,7 +3,7 @@
border: none; border: none;
border-radius: 10; border-radius: 10;
font-family: "nerdfonts" ; font-family: "nerdfonts" ;
font-size: 15px; font-size: 12px;
min-height: 10px; min-height: 10px;
} }
@ -81,7 +81,7 @@ window#waybar.hidden {
background: #bd93f9; background: #bd93f9;
} }
#pulseaudio { #wireplumber {
margin-top: 6px; margin-top: 6px;
margin-left: 8px; margin-left: 8px;
padding-left: 10px; padding-left: 10px;
@ -213,40 +213,4 @@ window#waybar.hidden {
color: #161320; color: #161320;
background: #F28FAD; background: #F28FAD;
} }
#custom-wallpaper {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #161320;
background: #C9CBFF;
}
#custom-updates {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #161320;
background: #E8A2AF;
}
#custom-media {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #161320;
background: #F2CDCD;
}
'' ''

View File

@ -4,27 +4,27 @@
height = 24; height = 24;
modules-left = [ modules-left = [
"custom/launcher" "custom/launcher"
"hyprland/window" "hyprland/window"
]; ];
modules-center = [ "wlr/workspaces" ]; modules-center = [ "wlr/workspaces" ];
modules-right = [ modules-right = [
"backlight" "backlight"
"pulseaudio" # use pipewire, test needed. "wireplumber"
"cpu" # "cpu"
"memory" # "memory"
"tray"
"battery" "battery"
"tray"
"clock" "clock"
"custom/power" "custom/power"
]; ];
pulseaudio = { wireplumber = {
tooltip = false; tooltip = false;
scroll-step = 5; scroll-step = 5;
format = "{icon} {volume}%"; format = "{icon} {volume}%";
format-muted = "{icon} {volume}%"; format-muted = "{icon} {volume}%";
on-click ="pactl set-sink-mute @DEFAULT_SINK@ toggle"; on-click ="pactl set-sink-mute @DEFAULT_SINK@ toggle"; # wpctl?
format-icons = { format-icons = {
default = ["" "" ""]; default = ["" "" ""];
}; };
@ -52,7 +52,7 @@
network = { network = {
tooltip = false; tooltip = false;
format-wifi = " {essid}"; format-wifi = " {essid}";
format-ethernet = ""; format-ethernet = "";
}; };
@ -83,7 +83,19 @@
}; };
clock = { clock = {
format = "{ = %I =%M %p %d/%m/%Y}"; format = " {:%H:%M}";
tooltip-format = "\n<span size='9pt' font='Source Han Mono SC'>{calendar}</span>";
calendar = {
mode = "month";
weeks-pos = "right";
format = {
months = "<span color='#ffead3'><b>{}</b></span>";
days = "<span color='#ecc6d9'><b>{}</b></span>";
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
};
};
}; };
cpu = { cpu = {
@ -98,13 +110,13 @@
max-length = 10; max-length = 10;
}; };
"custom/launcher" ={ "custom/launcher" = {
format = " "; format = " ";
on-click = "nwggrid -o 0.8"; on-click = "nwggrid";
}; };
"custom/power" ={ "custom/power" = {
format = " "; format = "󰐥 ";
on-click = "nwgbar"; on-click = "nwgbar";
}; };
} }

View File

@ -0,0 +1,2 @@
set preview_images true
set preview_images_method kitty

View File

@ -15,6 +15,7 @@
#rofi #rofi
#rofi-rbw #rofi-rbw
nwg-launchers nwg-launchers
iconpack-obsidian # icon theme
]; ];
sessionPath = [ sessionPath = [
@ -34,6 +35,9 @@
# hyprland # hyprland
".config/hypr/hyprland.conf".source = ./files/hyprland.conf; ".config/hypr/hyprland.conf".source = ./files/hyprland.conf;
# ranger
".config/ranger/rc.conf".source = ./files/rager-rc.conf;
# Use flatseal to change permissions. # Use flatseal to change permissions.
#".local/share/fonts".source = /run/current-system/sw/share/X11/fonts; #".local/share/fonts".source = /run/current-system/sw/share/X11/fonts;