mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 18:58:28 +02: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@{
|
outputs = inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixpkgs-stable,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
nur,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
msi-rtx4090 = nixpkgs.lib.nixosSystem {
|
msi-rtx4090 = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = inputs;
|
||||||
inherit nixpkgs-stable;
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/msi-rtx4090
|
./hosts/msi-rtx4090
|
||||||
|
|
||||||
@@ -85,29 +81,13 @@
|
|||||||
home-manager.extraSpecialArgs = inputs;
|
home-manager.extraSpecialArgs = inputs;
|
||||||
home-manager.users.ryan = import ./home;
|
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 {
|
nixos-test = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = inputs;
|
||||||
inherit nixpkgs-stable;
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/nixos-test
|
./hosts/nixos-test
|
||||||
|
|
||||||
@@ -122,19 +102,6 @@
|
|||||||
home-manager.extraSpecialArgs = inputs;
|
home-manager.extraSpecialArgs = inputs;
|
||||||
home-manager.users.ryan = import ./home;
|
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
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
{ config, pkgs, home-manager, nur, ... } @ args:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
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
|
./cifs-mount.nix
|
||||||
../../modules/system.nix
|
../../modules/system.nix
|
||||||
../../modules/hyprland.nix
|
../../modules/hyprland.nix
|
||||||
|
|||||||
@@ -2,11 +2,25 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, home-manager, nur, ... } @args:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
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/system.nix
|
||||||
../../modules/hyprland.nix
|
../../modules/hyprland.nix
|
||||||
../../modules/fcitx5
|
../../modules/fcitx5
|
||||||
|
|||||||
Reference in New Issue
Block a user