feat: replace vscode by code-server temporarily, adjust flake.nix

This commit is contained in:
ryan4yin
2023-05-14 17:21:13 +08:00
parent e05f4bec8f
commit d8a4bde357
3 changed files with 33 additions and 37 deletions

View File

@@ -59,18 +59,14 @@
outputs = inputs@{
self,
nixpkgs,
nixpkgs-stable,
home-manager,
nur,
...
}: {
nixosConfigurations = {
msi-rtx4090 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit nixpkgs-stable;
};
specialArgs = inputs;
modules = [
./hosts/msi-rtx4090
@@ -85,29 +81,13 @@
home-manager.extraSpecialArgs = inputs;
home-manager.users.ryan = import ./home;
}
({pkgs, config, ... }: {
config = {
# use it as an overlay
nixpkgs.overlays = [
inputs.nixpkgs-wayland.overlay
];
};
})
# This adds a nur configuration option.
# Use `config.nur.repos.<user>.<package-name>` in NixOS Module for packages from the NUR.
nur.nixosModules.nur
];
};
nixos-test = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit nixpkgs-stable;
};
specialArgs = inputs;
modules = [
./hosts/nixos-test
@@ -122,19 +102,6 @@
home-manager.extraSpecialArgs = inputs;
home-manager.users.ryan = import ./home;
}
({pkgs, config, ... }: {
config = {
# use it as an overlay
nixpkgs.overlays = [
inputs.nixpkgs-wayland.overlay
];
};
})
# This adds a nur configuration option.
# Use `config.nur.repos.<user>.<package-name>` in NixOS Module for packages from the NUR.
nur.nixosModules.nur
];
};

View File

@@ -2,11 +2,26 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, home-manager, nur, ... } @ args:
{
imports =
[
({pkgs, config, ... }: {
config = {
# use it as an overlay
nixpkgs.overlays = [
args.nixpkgs-wayland.overlay
];
};
})
# This adds a nur configuration option.
# Use `config.nur.repos.<user>.<package-name>` in NixOS Module for packages from the NUR.
nur.nixosModules.nur
./cifs-mount.nix
../../modules/system.nix
../../modules/hyprland.nix

View File

@@ -2,11 +2,25 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, home-manager, nur, ... } @args:
{
imports =
[
({pkgs, config, ... }: {
config = {
# use it as an overlay
nixpkgs.overlays = [
args.nixpkgs-wayland.overlay
];
};
})
# This adds a nur configuration option.
# Use `config.nur.repos.<user>.<package-name>` in NixOS Module for packages from the NUR.
nur.nixosModules.nur
../../modules/system.nix
../../modules/hyprland.nix
../../modules/fcitx5