diff --git a/cafe/host.nix b/cafe/host.nix index 37e0bf9..95caa54 100644 --- a/cafe/host.nix +++ b/cafe/host.nix @@ -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"; + } diff --git a/flake.nix b/flake.nix index b73eac5..474816f 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; diff --git a/home/rachel.nix b/home/rachel.nix index 030296b..b776a98 100644 --- a/home/rachel.nix +++ b/home/rachel.nix @@ -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 = {