mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-19 07:54:28 +01:00
feat: replace vscode by code-server temporarily, adjust flake.nix
This commit is contained in:
37
flake.nix
37
flake.nix
@@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user