Add postfix user to postgres
This commit is contained in:
parent
b11bca0863
commit
fa8e0b531f
5 changed files with 33 additions and 15 deletions
|
@ -11,6 +11,14 @@ let wine-tkg-patched = pkgs.nix-gaming.wine-tkg.override {
|
|||
};
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(curr: prev: {
|
||||
factorio = prev.factorio.override
|
||||
{
|
||||
version = "1.1.53";
|
||||
};
|
||||
})
|
||||
];
|
||||
home.packages = [
|
||||
wine-tkg-patched
|
||||
pkgs.grapejuice
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
enable = true;
|
||||
bind = "127.0.0.1";
|
||||
databases = 3;
|
||||
port = 6379;
|
||||
};
|
||||
sops.secrets."services/gitea.nix" = { };
|
||||
}
|
||||
|
|
|
@ -69,4 +69,11 @@ in
|
|||
tls_preempt_cipherlist = "no";
|
||||
};
|
||||
};
|
||||
services.postgresql.ensureUsers = [{
|
||||
name = "postfix";
|
||||
ensurePermissions = {
|
||||
"DATABASE \"postfix\"" = "CONNECT";
|
||||
};
|
||||
}];
|
||||
|
||||
}
|
||||
|
|
29
flake.lock
29
flake.lock
|
@ -156,11 +156,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1642676973,
|
||||
"narHash": "sha256-bLQ6n0pXYaIuNSyJnm30JGCfjmuTi59qAmj8S2ExDXI=",
|
||||
"lastModified": 1642882610,
|
||||
"narHash": "sha256-pmdgeJ9v6y+T0UfNQ/Z+Hdv5tPshFFra5JLF/byUA/Y=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "7eb5106548eaab99ebeb21c87f93092de54fe931",
|
||||
"rev": "c47c350f6518ed39c2a16e4fadf9137b6c559ddc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -256,11 +256,11 @@
|
|||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1642731654,
|
||||
"narHash": "sha256-GRPo/7SnNLTHmPTudFQTI+neO/z6HOKQzQGV5qoT6wE=",
|
||||
"lastModified": 1642880071,
|
||||
"narHash": "sha256-NZW5BczhluZVkKblxrFqJbawUPxuC2HdKQ1t/+vKA34=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5d1520f3b6757fbddbab006e13ae291a417141aa",
|
||||
"rev": "30daa988f107bc4c910c398a77b2b89864049932",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -272,26 +272,27 @@
|
|||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1642856614,
|
||||
"narHash": "sha256-qNJkuIA4fhF6zoo0aAmRaJwHy0fwuzvjCcBrHwtGUgA=",
|
||||
"owner": "nixos",
|
||||
"lastModified": 1642926511,
|
||||
"narHash": "sha256-VOGQYVSp29EFQSlkwDvOkL6hvjaXT9C7rwTvgQsJ3ac=",
|
||||
"owner": "darkkirb",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "14e98e59b1ef615d54ec6294f65e8f32d68cb914",
|
||||
"rev": "5cfcd0b5b28d3f62c0e6a0a59878613b9f03c4dc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"owner": "darkkirb",
|
||||
"ref": "factorio-1.1.53",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1642854142,
|
||||
"narHash": "sha256-DI8WAGjAM/jAHaW2+j2tEWG3UvqQ20yO6pQdd9zgSbQ=",
|
||||
"lastModified": 1642919252,
|
||||
"narHash": "sha256-vys7uueK4bTJWvJZHJ0OQNJ4JECFk0dddjfOlSAnIPs=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "b23310eee4b444b3f6ea120e84b922ecf0b3baca",
|
||||
"rev": "45aa729c03c40d2cd1f51913d563dcc80c0b21c0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -2,7 +2,8 @@ rec {
|
|||
description = "Lotte's NixOS installation";
|
||||
|
||||
# Use NixOS unstable
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs";
|
||||
#inputs.nixpkgs.url = "github:nixos/nixpkgs";
|
||||
inputs.nixpkgs.url = "github:darkkirb/nixpkgs?ref=factorio-1.1.53";
|
||||
inputs.home-manager.url = "github:nix-community/home-manager";
|
||||
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.sops-nix.url = github:Mic92/sops-nix;
|
||||
|
|
Loading…
Reference in a new issue