Temp use vscode python ext from nixpkgs master
Some checks are pending
pre-commit / pre-commit (push) Waiting to run

This commit is contained in:
Torjus Håkestad 2024-09-16 00:30:54 +02:00
parent f4e2ff36c6
commit 85c5aa239a
3 changed files with 42 additions and 10 deletions

View File

@ -159,6 +159,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-master": {
"locked": {
"lastModified": 1726438876,
"narHash": "sha256-mfk6fhXH75IH2zZIHKD+hdyvvPQxiop16JchbMQrBzw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "401a65280e36b3893f380d1fd67c76a5026b86d3",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1720535198, "lastModified": 1720535198,
@ -239,6 +255,7 @@
"huecli": "huecli", "huecli": "huecli",
"nix-packages": "nix-packages", "nix-packages": "nix-packages",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-master": "nixpkgs-master",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"
} }

View File

@ -4,6 +4,7 @@
inputs = { inputs = {
# nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; # nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs?ref=nixos-23.11"; nixpkgs-stable.url = "github:nixos/nixpkgs?ref=nixos-23.11";
nixpkgs-master.url = "github:nixos/nixpkgs?ref=master";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
@ -28,6 +29,7 @@
{ {
self, self,
nixpkgs, nixpkgs,
nixpkgs-master,
nixpkgs-stable, nixpkgs-stable,
sops-nix, sops-nix,
ghettoptt, ghettoptt,
@ -44,6 +46,12 @@
config.allowUnfree = true; config.allowUnfree = true;
}; };
}; };
overlay-master = final: prev: {
master = import nixpkgs-master {
inherit system;
config.allowUnfree = true;
};
};
allSystems = [ allSystems = [
"x86_64-linux" "x86_64-linux"
"aarch64-linux" "aarch64-linux"
@ -73,6 +81,7 @@
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
overlay-stable overlay-stable
overlay-master
ghettoptt.overlays.default ghettoptt.overlays.default
huecli.overlays.default huecli.overlays.default
nix-packages.overlays.default nix-packages.overlays.default
@ -99,6 +108,7 @@
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
overlay-stable overlay-stable
overlay-master
ghettoptt.overlays.default ghettoptt.overlays.default
huecli.overlays.default huecli.overlays.default
nix-packages.overlays.default nix-packages.overlays.default

View File

@ -1,18 +1,23 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
enableUpdateCheck = true; enableUpdateCheck = true;
enableExtensionUpdateCheck = true; enableExtensionUpdateCheck = true;
extensions = with pkgs.vscode-extensions; [ extensions =
catppuccin.catppuccin-vsc with pkgs.vscode-extensions;
catppuccin.catppuccin-vsc-icons [
golang.go catppuccin.catppuccin-vsc
vscodevim.vim catppuccin.catppuccin-vsc-icons
ms-python.python golang.go
ms-vscode-remote.remote-ssh vscodevim.vim
bbenoist.nix # ms-python.python
]; ms-vscode-remote.remote-ssh
bbenoist.nix
]
++ [
(lib.warn "Using vscode-extensions.ms-python.python from nixpkgs master!" pkgs.master.vscode-extensions.ms-python.python)
];
userSettings = { userSettings = {
"window.titleBarStyle" = "custom"; "window.titleBarStyle" = "custom";
}; };