sublime fix
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
problems.handlers.sublimetext4.broken = "ignore";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ in
|
|||||||
lib.removePrefix "/etc/" cfg.certDir
|
lib.removePrefix "/etc/" cfg.certDir
|
||||||
else
|
else
|
||||||
cfg.certDir;
|
cfg.certDir;
|
||||||
certRootEtcPath = "${certDirEtcPath}/root_ca.crt";
|
|
||||||
mkStepRules = home: user: group: [
|
mkStepRules = home: user: group: [
|
||||||
"d ${home}/.step 0700 ${user} ${group} -"
|
"d ${home}/.step 0700 ${user} ${group} -"
|
||||||
"d ${home}/.step/config 0700 ${user} ${group} -"
|
"d ${home}/.step/config 0700 ${user} ${group} -"
|
||||||
@@ -38,10 +37,9 @@ in
|
|||||||
environment.etc = lib.mkIf cfgInEtc {
|
environment.etc = lib.mkIf cfgInEtc {
|
||||||
"step-ca/defaults.json".text = builtins.toJSON {
|
"step-ca/defaults.json".text = builtins.toJSON {
|
||||||
ca-url = "https://janus.john-stream.com/";
|
ca-url = "https://janus.john-stream.com/";
|
||||||
fingerprint = builtins.readFile ./fingerprint;
|
fingerprint = "2036c44f7b5901566ff7611ea6c927291ecc6d2dd00779c0eead70ec77fa10d6";
|
||||||
root = "/etc/${certRootEtcPath}";
|
root = ./root_ca.crt;
|
||||||
};
|
};
|
||||||
"${certRootEtcPath}".source = ./root_ca.crt;
|
|
||||||
};
|
};
|
||||||
systemd.tmpfiles.rules =
|
systemd.tmpfiles.rules =
|
||||||
mkStepRules johnHome username johnGroup
|
mkStepRules johnHome username johnGroup
|
||||||
@@ -49,14 +47,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.janus-ca = { config, ... }: {
|
|
||||||
home.file.".step/config/defaults.json".text = builtins.toJSON {
|
|
||||||
ca-url = "https://janus.john-stream.com/";
|
|
||||||
fingerprint = builtins.readFile ./fingerprint;
|
|
||||||
root = ./root_ca.crt;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
modules = with inputs.self.modules; [
|
modules = with inputs.self.modules; [
|
||||||
nixos.lxc
|
nixos.lxc
|
||||||
@@ -70,6 +60,7 @@ in
|
|||||||
nixos.mtls
|
nixos.mtls
|
||||||
{
|
{
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
|
sops.defaultSopsFile = ../../../keys/secrets.yaml;
|
||||||
step-ssh-host = {
|
step-ssh-host = {
|
||||||
hostname = hostname;
|
hostname = hostname;
|
||||||
};
|
};
|
||||||
@@ -86,7 +77,6 @@ in
|
|||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
mysops
|
mysops
|
||||||
];
|
];
|
||||||
shell.program = "zsh";
|
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,9 +62,15 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.homeConfigurations."john@john-kde" = withSystem "x86_64-linux" (ctx@{ system, inputs', ... }:
|
flake.homeConfigurations."john@john-kde" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
inputs.home-manager.lib.homeManagerConfiguration {
|
pkgs = import inputs.nixpkgs.outPath {
|
||||||
pkgs = inputs'.nixpkgs.legacyPackages;
|
localSystem.system = "x86_64-linux";
|
||||||
modules = [ inputs.self.modules.homeManager."${hostname}" ]; # Uses the module defined above
|
config = {
|
||||||
});
|
allowUnfree = true;
|
||||||
|
permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||||
|
problems.handlers.sublimetext4.broken = "ignore";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
modules = [ inputs.self.modules.homeManager."${hostname}" ]; # Uses the module defined above
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ in
|
|||||||
ssh = {
|
ssh = {
|
||||||
certificates.enable = true;
|
certificates.enable = true;
|
||||||
knownHosts = [
|
knownHosts = [
|
||||||
"fded:fb16:653e:25da:be24:11ff:fea0:753f ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ9ZqiWPrCwHjxFCiu0lT4rlQs7KyMapxKJQQ5PJP1eh"
|
"@cert-authority fded:fb16:653e:25da:be24:11ff:fea0:753f ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNug18oLH0vZxnibXJzMJvTWFPZTnSlhCDDVi+rHhgnIum6ZXQ4SF+VHOOAM5BbzZmMKitNJ5lcrGP15Eur7DzQ="
|
||||||
];
|
];
|
||||||
matchSets = {
|
matchSets = {
|
||||||
certs = true;
|
certs = true;
|
||||||
@@ -106,13 +106,15 @@ in
|
|||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.homeConfigurations."john@john-pc-ubuntu" = withSystem "x86_64-linux" (ctx@{ system, inputs', ... }:
|
flake.homeConfigurations."john@john-pc-ubuntu" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
inputs.home-manager.lib.homeManagerConfiguration {
|
pkgs = import inputs.nixpkgs.outPath {
|
||||||
# pkgs = import inputs.nixpkgs {
|
localSystem.system = "x86_64-linux";
|
||||||
# inherit system;
|
config = {
|
||||||
# overlays = [ inputs.self.overlays.default ];
|
allowUnfree = true;
|
||||||
# };
|
permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||||
pkgs = inputs'.nixpkgs.legacyPackages;
|
problems.handlers.sublimetext4.broken = "ignore";
|
||||||
modules = [ inputs.self.modules.homeManager."${hostname}" ];
|
};
|
||||||
});
|
};
|
||||||
|
modules = [ inputs.self.modules.homeManager."${hostname}" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,11 +13,12 @@ in
|
|||||||
nixos."${username}"
|
nixos."${username}"
|
||||||
nixos.docker
|
nixos.docker
|
||||||
{
|
{
|
||||||
|
step-ssh-host.hostname = hostname;
|
||||||
|
sops.defaultSopsFile = ../../keys/secrets.yaml;
|
||||||
home-manager.users."${username}" = {
|
home-manager.users."${username}" = {
|
||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
mysops
|
mysops
|
||||||
];
|
];
|
||||||
shell.program = "zsh";
|
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
ssh.matchSets = {
|
ssh.matchSets = {
|
||||||
certs = true;
|
certs = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user