mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 22:22:40 +02:00
feat: install vscode & discord on macos via nix
This commit is contained in:
+10
-4
@@ -1,11 +1,11 @@
|
|||||||
# Install those apps using brew, instead of nix
|
# Install those apps using brew, instead of nix
|
||||||
# because they are not available in nixpkgs with the support of darwin
|
# because they are not available in nixpkgs with the support of darwin
|
||||||
# ==> Brew Casks
|
# ==> Brew Casks
|
||||||
# iglance jdk-mission-control visual-studio-code
|
# jdk-mission-control
|
||||||
# anki firefox iina openinterminal-lite
|
# anki firefox iina openinterminal-lite
|
||||||
# insomnia orbstack
|
# insomnia orbstack
|
||||||
# clashx google-chrome intellij-idea-ce pycharm-ce
|
# clashx google-chrome
|
||||||
# discord google-cloud-sdk iterm2 telegram wireshark
|
# google-cloud-sdk telegram wireshark
|
||||||
|
|
||||||
|
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
@@ -13,8 +13,14 @@
|
|||||||
# MacOS specific configuration
|
# MacOS specific configuration
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
mpv
|
mpv
|
||||||
|
discord
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# stable version of vscode
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
# # enable flakes globally
|
# # enable flakes globally
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
# Auto upgrade nix package and the daemon service.
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
# Use this instead of services.nix-daemon.enable if you
|
# Use this instead of services.nix-daemon.enable if you
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
# enable flakes globally
|
# enable flakes globally
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Asia/Shanghai";
|
time.timeZone = "Asia/Shanghai";
|
||||||
|
|
||||||
@@ -99,9 +102,6 @@
|
|||||||
# Use `ssh-add` to add a key to the agent.
|
# Use `ssh-add` to add a key to the agent.
|
||||||
programs.ssh.startAgent = true;
|
programs.ssh.startAgent = true;
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
# enable flakes globally
|
# enable flakes globally
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Asia/Shanghai";
|
time.timeZone = "Asia/Shanghai";
|
||||||
|
|
||||||
@@ -71,9 +74,6 @@
|
|||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
Reference in New Issue
Block a user