From c828b15d88c6b00ffe83d1449fb92bc0e1df8ede Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 18 Jan 2023 09:42:09 +0100 Subject: [PATCH] add ccache --- flake.lock | 18 +++++++++--------- .../olympus/core/namespaces/kustomization.yaml | 1 + flux/olympus/core/namespaces/security.yaml | 5 +++++ nixos/hosts/thalassa/aoife/configuration.nix | 13 +++++++++++-- 4 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 flux/olympus/core/namespaces/security.yaml diff --git a/flake.lock b/flake.lock index c9a2cbf..f965491 100644 --- a/flake.lock +++ b/flake.lock @@ -455,11 +455,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1673953056, - "narHash": "sha256-C0AnzNLRVJ7ljgtWUtn9foD/3XyvoCSNjbPMVCFojp0=", + "lastModified": 1673958010, + "narHash": "sha256-5SY1hQjLrl4vXaolP6Xf3+uMFitc06oe9ibB+x97Cds=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "f14e8088478bf1e80e02a213a23c528fe32d3b91", + "rev": "c31c627cf85ea4fd40c1647c84d89b5e6f186785", "type": "github" }, "original": { @@ -770,11 +770,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1673855649, - "narHash": "sha256-Pc1VumquuFMDR1Ers1QOVDDabL/trVwfqWXeKJPXLQg=", + "lastModified": 1673954326, + "narHash": "sha256-oAKwsXTptcY6gRCBxJlZ+W1BrZHNr9a28+4fQMLuRu0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c85d08692966cf022b0a741a794cb1650602d8af", + "rev": "8fc3a1dcc98d3603221d4afd239e666eeedb6141", "type": "github" }, "original": { @@ -855,11 +855,11 @@ }, "nur": { "locked": { - "lastModified": 1673935396, - "narHash": "sha256-AkimCjK8quWnfMTmSKORp2tCs1dAifJD1BEn3bYnS/w=", + "lastModified": 1674021312, + "narHash": "sha256-kW00Hpb2jqX7zDHnw/us7DH4lChTa6DoVcZZrd9CKwE=", "owner": "nix-community", "repo": "NUR", - "rev": "7e9a5b42d68ca84a91e082ad325318e01456d2b5", + "rev": "993b34d7fc525534c59229312c1ff21a976def54", "type": "github" }, "original": { diff --git a/flux/olympus/core/namespaces/kustomization.yaml b/flux/olympus/core/namespaces/kustomization.yaml index 62346c5..89c93b9 100644 --- a/flux/olympus/core/namespaces/kustomization.yaml +++ b/flux/olympus/core/namespaces/kustomization.yaml @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - websites.yaml + - security.yaml diff --git a/flux/olympus/core/namespaces/security.yaml b/flux/olympus/core/namespaces/security.yaml new file mode 100644 index 0000000..133fe73 --- /dev/null +++ b/flux/olympus/core/namespaces/security.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: security diff --git a/nixos/hosts/thalassa/aoife/configuration.nix b/nixos/hosts/thalassa/aoife/configuration.nix index 6769d5e..976876a 100644 --- a/nixos/hosts/thalassa/aoife/configuration.nix +++ b/nixos/hosts/thalassa/aoife/configuration.nix @@ -13,8 +13,8 @@ # Bootloader. boot = { - # kernelPackages = pkgs.linuxPackages_latest; - kernelPackages = pkgs.linuxKernel.packages.linux_zen; + kernelPackages = pkgs.linuxPackages_latest; + # kernelPackages = pkgs.linuxKernel.packages.linux_zen; loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; @@ -111,4 +111,13 @@ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.05"; # Did you read the comment? + # Enable ccache + programs.ccache.enable = true; + programs.ccache.packageNames = [ + # "linux" + # "webkitgtk" + # "qtwebengine" + ]; + nix.settings.extra-sandbox-paths = + [ (toString config.programs.ccache.cacheDir) ]; }