mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:58:30 +02:00
feat: switch to x11 + i3
This commit is contained in:
39
flake.lock
generated
39
flake.lock
generated
@@ -43,6 +43,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"darwin_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-darwin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1684774948,
|
||||||
|
"narHash": "sha256-hJTaw4dYzcB+lsasKejnafq0CxPsVetn9RLXrcL+4jE=",
|
||||||
|
"owner": "lnl7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "b8c286c82c6b47826a6c0377e7017052ad91353c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lnl7",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"devenv": {
|
"devenv": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
@@ -426,6 +447,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-darwin": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1684968804,
|
||||||
|
"narHash": "sha256-y78lDeiJC/MSOM6HBe1VI5G2lrrmJMkWigRuOrf20uA=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "f69907854223d6d49f75b1ae52b2f6567f711d90",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-23.05-darwin",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681001314,
|
"lastModified": 1681001314,
|
||||||
@@ -652,12 +689,14 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"darwin": "darwin_2",
|
||||||
"devenv": "devenv",
|
"devenv": "devenv",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nil": "nil",
|
"nil": "nil",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5",
|
||||||
|
"nixpkgs-darwin": "nixpkgs-darwin",
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2",
|
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"nur": "nur"
|
"nur": "nur"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
darwin = {
|
darwin = {
|
||||||
url = "github:lnl7/nix-darwin/master";
|
url = "github:lnl7/nix-darwin/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||||
}
|
};
|
||||||
|
|
||||||
# nix users repository
|
# nix users repository
|
||||||
# used to install some packages not in nixpkgs
|
# used to install some packages not in nixpkgs
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
# 使用 home-manager.extraSpecialArgs 自定义传递给 ./home 的参数
|
# 使用 home-manager.extraSpecialArgs 自定义传递给 ./home 的参数
|
||||||
home-manager.extraSpecialArgs = inputs;
|
home-manager.extraSpecialArgs = inputs;
|
||||||
home-manager.users.ryan = import ./home/home-wayland.nix;
|
home-manager.users.ryan = import ./home/home-x11.nix;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -104,6 +104,9 @@
|
|||||||
ltrace # library call monitoring
|
ltrace # library call monitoring
|
||||||
lsof
|
lsof
|
||||||
mtr
|
mtr
|
||||||
|
|
||||||
|
# A tool to create bootable live USB drives from ISO images
|
||||||
|
unetbootin
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
../../modules/fhs-fonts.nix
|
../../modules/fhs-fonts.nix
|
||||||
../../modules/hyprland.nix
|
# ../../modules/hyprland.nix
|
||||||
#../../modules/i3.nix
|
../../modules/i3.nix
|
||||||
../../modules/nur-packages.nix
|
../../modules/nur-packages.nix
|
||||||
../../modules/system.nix
|
../../modules/system.nix
|
||||||
../../modules/user_group.nix
|
../../modules/user_group.nix
|
||||||
|
|||||||
@@ -71,19 +71,4 @@
|
|||||||
ncmpcpp # a mpd client with a UI
|
ncmpcpp # a mpd client with a UI
|
||||||
networkmanagerapplet # provide GUI app: nm-connection-editor
|
networkmanagerapplet # provide GUI app: nm-connection-editor
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
wlr.enable = true;
|
|
||||||
xdgOpenUsePortal = true;
|
|
||||||
extraPortals = with pkgs; [
|
|
||||||
xdg-desktop-portal-wlr # for wlroots based compositors
|
|
||||||
xdg-desktop-portal-gtk # for gtk
|
|
||||||
# xdg-desktop-portal-kde # for kde
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# for power management
|
|
||||||
services.upower.enable = true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,4 +220,19 @@
|
|||||||
# android development tools, this will install adb/fastboot and other android tools and udev rules
|
# android development tools, this will install adb/fastboot and other android tools and udev rules
|
||||||
# see https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/programs/adb.nix
|
# see https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/programs/adb.nix
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
xdgOpenUsePortal = true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-wlr # for wlroots based compositors
|
||||||
|
xdg-desktop-portal-gtk # for gtk
|
||||||
|
# xdg-desktop-portal-kde # for kde
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# for power management
|
||||||
|
services.upower.enable = true;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user