From a9bb3054faf3d2c1505b241751c4513af69d20ba Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 30 Apr 2022 11:54:32 -0400 Subject: [PATCH] Revamp ./hosts --- hosts/facade.nix | 46 ---------------------------- hosts/{thick.nix => laptops/p71.nix} | 0 hosts/{thin.nix => laptops/x1c7.nix} | 0 3 files changed, 46 deletions(-) delete mode 100644 hosts/facade.nix rename hosts/{thick.nix => laptops/p71.nix} (100%) rename hosts/{thin.nix => laptops/x1c7.nix} (100%) diff --git a/hosts/facade.nix b/hosts/facade.nix deleted file mode 100644 index e4f9d52..0000000 --- a/hosts/facade.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ config, pkgs, lib, modulesPath, ... }: - -{ - - imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [ - (modulesPath + "/virtualisation/digital-ocean-config.nix") - ]; - - swapDevices = [{ device = "/swapfile"; size = 2048; }]; - - nix = { - package = pkgs.nixUnstable; - extraOptions = '' - experimental-features = nix-command flakes - ''; - }; - - environment.systemPackages = with pkgs; [ - cryptsetup - ]; - - services.netdata.enable = true; - services.do-agent.enable = true; - services = { - syncthing = { - enable = true; - user = "srid"; - dataDir = "/volume"; - }; - }; - - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.srid = { - isNormalUser = true; - extraGroups = [ "wheel" ]; - }; - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "21.11"; # Did you read the comment? - -} diff --git a/hosts/thick.nix b/hosts/laptops/p71.nix similarity index 100% rename from hosts/thick.nix rename to hosts/laptops/p71.nix diff --git a/hosts/thin.nix b/hosts/laptops/x1c7.nix similarity index 100% rename from hosts/thin.nix rename to hosts/laptops/x1c7.nix