Skip to content

Commit 050bf28

Browse files
committed
Merge branch 'main' of ssh://github.com/ryan4yin/nix-config
2 parents ff2f7db + 0c23a82 commit 050bf28

47 files changed

Lines changed: 1096 additions & 10852 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

flake.lock

Lines changed: 636 additions & 10645 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
};
101101

102102
lanzaboote = {
103-
url = "github:nix-community/lanzaboote/v0.4.3";
103+
url = "github:nix-community/lanzaboote/v1.0.0";
104104
inputs.nixpkgs.follows = "nixpkgs";
105105
};
106106

@@ -128,7 +128,7 @@
128128
};
129129

130130
disko = {
131-
url = "github:nix-community/disko/v1.11.0";
131+
url = "github:nix-community/disko/v1.13.0";
132132
inputs.nixpkgs.follows = "nixpkgs";
133133
};
134134

hardening/bwraps/wechat.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ let
1919
version = "4.1.0.13";
2020
src = fetchurl {
2121
url = "https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_arm64.AppImage";
22-
hash = "sha256-o6a7773agYqrP4dXsjzSUT2Du77gZ4wN1F2e0uvEzVc=";
22+
hash = "sha256-YlWJxT62tXDaNwYVpsPMC5elFH8fsbI1HjTQn6ePiPo=";
2323
};
2424
};
2525
x86_64-linux = {
2626
version = "4.1.0.13";
2727
src = fetchurl {
2828
url = "https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.AppImage";
29-
hash = "sha256-Pfl81lNVlMJWyPqFli1Af2q8pRLujcKCjYoILCKDx8U=";
29+
hash = "sha256-XxAvFnlljqurGPDgRr+DnuCKbdVvgXBPh02DLHY3Oz8=";
3030
};
3131
};
3232
};

home/base/tui/dev-tools.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
tokei # count lines of code, alternative to cloc
2323

2424
# db related
25-
mycli
25+
# mycli
2626
pgcli
2727
mongosh
2828
sqlite

home/base/tui/password-store/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ in
1515
# NOTE: Saving the password and OTP together runs counter to the purpose of secondary verification!
1616
# exts.pass-otp
1717

18-
exts.pass-import # a generic importer tool from other password managers
18+
# exts.pass-import # a generic importer tool from other password managers
1919
exts.pass-update # an easy flow for updating passwords
2020
]);
2121
# See the “Environment variables” section of pass(1) and the extension man pages for more information about the available keys.

home/linux/gui/base/gaming.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ in
7575
])
7676
++ (with pkgs-x64; [
7777
# a game launcher - great for epic games and gog games
78-
(heroic.override {
79-
extraPkgs = _pkgs: [
80-
pkgs.gamescope # aarch64
81-
];
82-
})
78+
# (heroic.override {
79+
# extraPkgs = _pkgs: [
80+
# pkgs.gamescope # aarch64
81+
# ];
82+
# })
8383
]);
8484

8585
# a GUI game launcher for Steam/GoG/Epic
@@ -91,7 +91,6 @@ in
9191
protonPackages = [ pkgs-x64.proton-ge-bin ];
9292
winePackages = with pkgs-x64; [
9393
wineWow64Packages.full
94-
wineWowPackages.stagingFull
9594
];
9695
extraPackages = with pkgs; [
9796
winetricks

home/linux/gui/base/noctalia/config/settings.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"fontScale": 1,
5151
"frameRadius": 12,
5252
"frameThickness": 8,
53-
"hideOnOverview": false,
53+
"hideOnOverview": true,
5454
"marginHorizontal": 5,
5555
"marginVertical": 5,
5656
"middleClickAction": "none",
@@ -239,10 +239,6 @@
239239
"enabled": true,
240240
"id": "calendar-month-card"
241241
},
242-
{
243-
"enabled": true,
244-
"id": "timer-card"
245-
},
246242
{
247243
"enabled": true,
248244
"id": "weather-card"
@@ -387,6 +383,7 @@
387383
"pinnedStatic": false,
388384
"position": "bottom",
389385
"showDockIndicator": false,
386+
"showFrameIndicator": true,
390387
"showLauncherIcon": false,
391388
"sitOnFrame": false,
392389
"size": 1
@@ -594,6 +591,13 @@
594591
"countdownEnabled": true,
595592
"enabled": true,
596593
"keybind": "6"
594+
},
595+
{
596+
"action": "rebootToUefi",
597+
"command": "",
598+
"countdownEnabled": true,
599+
"enabled": true,
600+
"keybind": ""
597601
}
598602
],
599603
"showHeader": true,

home/linux/gui/base/noctalia/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
config,
44
mylib,
55
pkgs,
6-
pkgs-patched,
7-
noctalia-shell,
86
wallpapers,
7+
noctalia-shell,
98
...
109
}:
1110

hosts/12kingdoms-shoukei/apple-silicon.nix

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
nixos-apple-silicon.nixosModules.default
1111
];
1212

13+
# NOTE:macbook do not have a tpm2 device for luks auto unlock
14+
# we have to enter the luks passphrase on boot, so remove login manager here to reduce the pain.
15+
services.greetd.settings.default_session.command = lib.mkForce "$HOME/.wayland-session";
16+
1317
zramSwap.memoryPercent = lib.mkForce 75;
1418

1519
nix.settings = {
@@ -59,12 +63,12 @@
5963
powerKeyLongPress = "poweroff";
6064
};
6165
systemd.targets.sleep.enable = true;
62-
systemd.sleep.extraConfig = ''
63-
AllowSuspend=yes
64-
AllowHibernate=no
65-
AllowSuspendThenHibernate=no
66-
HibernateDelaySec=5min
67-
'';
66+
systemd.sleep.settings.Sleep = {
67+
AllowSuspend = "yes";
68+
AllowHibernate = "no";
69+
AllowSuspendThenHibernate = "no";
70+
HibernateDelaySec = "5min";
71+
};
6872

6973
# After adding this snippet, you need to restart the system for the touchbar to work.
7074
hardware.apple.touchBar = {

hosts/12kingdoms-shoukei/hardware-configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ in
100100
# set mode to 755, otherwise systemd will set it to 777, which cause problems.
101101
# relatime: Update inode access times relative to modify or change time.
102102
options = [
103+
"size=1G"
103104
"relatime"
104105
"mode=755"
105106
];

0 commit comments

Comments
 (0)