Compare commits

...

6 Commits

Author SHA1 Message Date
chn
2096a8e2e4 update blog 2024-10-03 01:02:21 +08:00
chn
7e47019aea modules.hardware: fix printer security issue 2024-10-02 23:50:07 +08:00
chn
24e4420a57 devices.pc: set windows boot entry 2024-10-02 20:29:32 +08:00
chn
76383ad9cb devices.pc: allow kvm to read physical disk 2024-10-02 13:13:43 +08:00
chn
4fb4df63cc devices.pc: add a disk 2024-10-02 13:09:52 +08:00
chn
5cff64305d update blog 2024-10-02 01:24:00 +08:00
3 changed files with 13 additions and 9 deletions

View File

@ -23,7 +23,7 @@ inputs:
resume = "/dev/mapper/swap";
rollingRootfs = {};
};
grub.windowsEntries."7AF0-D2F2" = "Windows";
grub.windowsEntries."645C-284C" = "Windows";
nix =
{
marches =
@ -62,7 +62,7 @@ inputs:
gpu =
{
type = "amd+nvidia";
nvidia = { prime.busId = { amd = "5:0:0"; nvidia = "1:0:0"; }; dynamicBoost = true; driver = "latest"; };
nvidia = { prime.busId = { amd = "6:0:0"; nvidia = "1:0:0"; }; dynamicBoost = true; driver = "latest"; };
};
legion = {};
};
@ -168,6 +168,8 @@ inputs:
};
# 禁止鼠标等在睡眠时唤醒
services.udev.extraRules = ''ACTION=="add", ATTR{power/wakeup}="disabled"'';
# 允许kvm读取物理硬盘
users.users.qemu-libvirtd.extraGroups = [ "disk" ];
networking.extraHosts = "74.211.99.69 mirism.one beta.mirism.one ng01.mirism.one";
services.colord.enable = true;
environment.persistence."/nix/archive" =

View File

@ -24,11 +24,11 @@
"blog": {
"flake": false,
"locked": {
"lastModified": 1727598108,
"narHash": "sha256-8wVJBavzvY3n2sJeuyOt68FNJ9W70M+FlxoeiJhP/JQ=",
"lastModified": 1727888490,
"narHash": "sha256-pEZFFuisuBSHPdMgq/Bqkh+6lAKN4oRJFLTAgB6bwqg=",
"ref": "refs/heads/main",
"rev": "2b65e0deb81324be72afc51204a0a75dad7eade5",
"revCount": 9,
"rev": "6101a8dee8e8c2234dab8daf910ead09758441b4",
"revCount": 14,
"type": "git",
"url": "https://git.chn.moe/chn/blog.git"
},
@ -986,11 +986,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1727530699,
"narHash": "sha256-Gfn8d6gbG5B+IO6mUWQXrnoUDCJUmrUD/M/QJDUsfRY=",
"lastModified": 1727884105,
"narHash": "sha256-J4lHJFQp7AFEa+O52KgYMCXkffAgpXWGyD89AU8xeJE=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "9062900234c7d0157fc9612d36a1f03bc47040e9",
"rev": "e8db202a0ba0b25d01c01b49ed3025f7b0900d59",
"type": "github"
},
"original": {

View File

@ -28,6 +28,8 @@ inputs:
{
enable = true;
drivers = inputs.lib.mkIf (inputs.config.nixos.system.nixpkgs.arch == "x86_64") [ inputs.pkgs.cnijfilter2 ];
# TODO: remove in next update
browsed.enable = false;
};
avahi = { enable = true; nssmdns4 = true; openFirewall = true; };
};