master
Rachel Lambda Samuelsson 2024-04-17 15:41:01 +02:00
parent 1de7b6e5b9
commit 5b15769ad5
3 changed files with 46 additions and 2 deletions

View File

@ -27,6 +27,36 @@ in
};
# [NETWORK]
# networking.firewall.allowedTCPPorts = [ 80 ];
# networking.firewall.allowedUDPPorts = [ ];
networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall.allowedUDPPorts = [ ];
# VM test user
users.users.test.isSystemUser = true ;
users.users.test.initialPassword = "test";
users.users.test.group = "test";
users.groups.test = {};
console = {
useXkbConfig = true;
};
services.xserver = {
xkb = {
layout = "fox,sus";
options = "ctrl:nocaps";
extraLayouts.sus = {
description = "Swedish US";
languages = [ "se" ];
symbolsFile = ../shared/sus.xkb;
};
extraLayouts.fox = {
description = "Layout suitable to be used by a fox";
languages = [ "se" ];
symbolsFile = ../shared/fox.xkb;
};
};
};
system.stateVersion = "23.11";
}

View File

@ -62,6 +62,19 @@
];
};
nixosConfigurations.cafe = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nix-config-module
./cafe/host.nix
];
virtualisation.forwardPorts = [
{ from = "host"; host.port = 80; guest.port = 8080; }
];
};
keyboardLayouts.fox = ./shared/fox.xkb;
fonts.sax2nf = import ./shared/sax2nf.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };

View File

@ -185,6 +185,7 @@ in
lspcfg.clangd.setup({
cmd = { '${pkgs.clang-tools}/bin/clangd' },
})
lspcfg.ocamllsp.setup({})
require('orgmode').setup_ts_grammar()
require('nvim-treesitter.configs').setup({
highlight = {