Compare commits

...

5 Commits

Author SHA1 Message Date
Dave Gallant
f84fd5f8b6 Add missing vi and vim aliases 2024-02-19 22:09:33 -05:00
Dave Gallant
ff55e655da Fix impurity 2024-02-19 21:39:32 -05:00
Dave Gallant
9eb18c9f4b Switch to nixd lsp 2024-02-19 20:23:08 -05:00
Dave Gallant
a1c830b20a nix flake update: 2024-02-20 00:27:21 UTC 2024-02-19 19:27:21 -05:00
Dave Gallant
1b42023b84 Update timestamp 2024-02-19 19:22:01 -05:00
7 changed files with 23 additions and 23 deletions

View File

@@ -7,11 +7,8 @@ MAKEFLAGS += --no-builtin-rules
HOSTNAME ?= $(shell hostname) HOSTNAME ?= $(shell hostname)
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
export NIXPKGS_ALLOW_UNFREE := 1
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
SWITCH_CMD := nixos-rebuild --use-remote-sudo -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix" switch --flake '.\#' \ SWITCH_CMD := nixos-rebuild --use-remote-sudo -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix" switch --flake '.\#'
--impure # Impure because of: https://discourse.nixos.org/t/vscode-remote-wsl-extension-works-on-nixos-without-patching-thanks-to-nix-ld/14615
endif endif
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
SWITCH_CMD := exec darwin-rebuild switch --flake . SWITCH_CMD := exec darwin-rebuild switch --flake .
@@ -27,7 +24,7 @@ update:
nix flake update nix flake update
make make
git add . git add .
git commit -S -m "nix flake update: $$(TZ=UTC date +%Y-%m-%d_%H-%M-%S)" git commit -S -m "nix flake update: $$(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')"
git push git push
fmt: fmt:

12
flake.lock generated
View File

@@ -204,11 +204,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1708307464, "lastModified": 1708341091,
"narHash": "sha256-OloBg9ZCoPrPqy8/ZoaoRB4kza3lKhnI0LuZq5xldhg=", "narHash": "sha256-3R7doGV1AoB5VKFifEd5elj8t4cld6VpJRpn9NaYr1Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a332040396d7e3c47883e9c115c1da485712805e", "rev": "86ef6bd96b6279e1a4a53236d341f5df1ede3803",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -220,11 +220,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1708161998, "lastModified": 1708294118,
"narHash": "sha256-6KnemmUorCvlcAvGziFosAVkrlWZGIc6UNT9GUYr0jQ=", "narHash": "sha256-evZzmLW7qoHXf76VCepvun1esZDxHfVRFUJtumD7L2M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "84d981bae8b5e783b3b548de505b22880559515f", "rev": "e0da498ad77ac8909a980f07eff060862417ccf7",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -368,6 +368,8 @@ in {
nixvim = { nixvim = {
enable = true; enable = true;
viAlias = true;
vimAlias = true;
colorschemes.gruvbox.enable = true; colorschemes.gruvbox.enable = true;
keymaps = [ keymaps = [
{ {
@@ -419,7 +421,7 @@ in {
#helm-ls.enable = true; #helm-ls.enable = true;
jsonls.enable = true; jsonls.enable = true;
pyright.enable = true; pyright.enable = true;
rnix-lsp.enable = true; nixd.enable = true;
terraformls.enable = true; terraformls.enable = true;
yamlls.enable = true; yamlls.enable = true;
}; };
@@ -447,9 +449,6 @@ in {
keymapsSilent = true; keymapsSilent = true;
}; };
}; };
extraPlugins = with pkgs.vimPlugins; [
nvim-lspconfig
];
options = { options = {
autoindent = true; autoindent = true;
backup = false; backup = false;

View File

@@ -7,6 +7,8 @@
}: { }: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")]; imports = [(modulesPath + "/installer/scan/not-detected.nix")];
nixpkgs.hostPlatform = "x86_64-linux";
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"ahci" "ahci"
"nvme" "nvme"

View File

@@ -1,5 +1,4 @@
final: prev: { final: prev: {
rfd = prev.callPackage ./rfd {};
tmux-sessionizer = prev.callPackage ./tmux-sessionizer {}; tmux-sessionizer = prev.callPackage ./tmux-sessionizer {};
vpngate = prev.callPackage ./vpngate {}; vpngate = prev.callPackage ./vpngate {};
} }

View File

@@ -9,6 +9,7 @@
in { in {
environment.systemPackages = with pkgs; let environment.systemPackages = with pkgs; let
linux = [ linux = [
android-tools
bitwarden bitwarden
chromium chromium
cryptsetup cryptsetup
@@ -36,7 +37,6 @@ in {
kazam kazam
legendary-gl legendary-gl
lm_sensors lm_sensors
logseq
mullvad-vpn mullvad-vpn
netdata netdata
nfs-utils nfs-utils
@@ -49,14 +49,12 @@ in {
qemu qemu
rustup rustup
ryujinx ryujinx
signal-desktop
strace strace
tailscale tailscale
traceroute traceroute
unstable.android-studio
unstable.android-tools
unstable.obsidian unstable.obsidian
unstable.signal-desktop unstable.logseq
unstable.unityhub
unstable.yuzu unstable.yuzu
unstable.zoom-us unstable.zoom-us
usbutils usbutils

View File

@@ -10,7 +10,13 @@
} @ inputs: { } @ inputs: {
nixosConfigurations = let nixosConfigurations = let
modulesDir = ./modules; modulesDir = ./modules;
unstable = import nixpkgs-unstable {}; unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
config.permittedInsecurePackages = [
"electron-25.9.0" # caused by obsidian
];
};
defaultModules = [ defaultModules = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
./modules/common/fonts.nix ./modules/common/fonts.nix
@@ -71,7 +77,6 @@
]; ];
in { in {
hephaestus = nixpkgs.lib.nixosSystem { hephaestus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit unstable;}; specialArgs = {inherit unstable;};
modules = modules =
[ [