add vscode and remove helix

enable home-manager for vscode
This commit is contained in:
2024-06-22 07:10:06 +08:00
parent f5dbb17136
commit b5ec595a28
3 changed files with 16 additions and 22 deletions
+8 -3
View File
@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, inputs, helix, ... }: { config, lib, pkgs, inputs, ... }:
{ {
imports = imports =
@@ -47,7 +47,7 @@
# Shell & Editor # Shell & Editor
fish # better shell fish # better shell
helix.packages."${pkgs.system}".helix #helix.packages."${pkgs.system}".helix
# Archives # Archives
zip zip
@@ -137,13 +137,18 @@
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
sops.defaultSopsFile = ./secrets/secrets.yaml; sops.defaultSopsFile = ./secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml"; sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/origami/.config/sops/age/keys.txt" sops.age.keyFile = "/home/origami/.config/sops/age/keys.txt";
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
system.stateVersion = "23.11"; system.stateVersion = "23.11";
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"vscode"
];
} }
+7 -7
View File
@@ -15,15 +15,15 @@
nixosConfigurations = { nixosConfigurations = {
"um790-nix" = nixpkgs.lib.nixosSystem { "um790-nix" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration.nix ./configuration.nix
#home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
# home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true; home-manager.useUserPackages = true;
# home-manager.users.origami = import ./home.nix; home-manager.users.origami = import ./home.nix;
# home-manager.extraSpecialArgs = inputs; home-manager.extraSpecialArgs = inputs;
#} }
]; ];
}; };
}; };
+1 -12
View File
@@ -6,20 +6,9 @@
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.git = {
enable = true;
userName = "origami";
userEmail = "Origami404@foxmail.com";
};
home.packages = with pkgs;[]; home.packages = with pkgs;[];
programs.vscode = {
programs.bash = {
enable = true; enable = true;
enableCompletion = true;
bashrcExtra = ''
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
'';
}; };
home.stateVersion = "23.11"; home.stateVersion = "23.11";