mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-22 21:18:44 +08:00
Compare commits
6 Commits
71715cc16c
...
2096a8e2e4
Author | SHA1 | Date | |
---|---|---|---|
2096a8e2e4 | |||
7e47019aea | |||
24e4420a57 | |||
76383ad9cb | |||
4fb4df63cc | |||
5cff64305d |
@ -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" =
|
||||
|
14
flake.lock
14
flake.lock
@ -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": {
|
||||
|
@ -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; };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user